FW: [omniORB] Beginners Question: ORB_Init in a GUI app.

edmar stoks edmarstoks@hotmail.com
Wed, 12 Jan 2000 22:37:19 CET


Hi there,

I read in the omniorb manual (node3.html) that you should destroy the boa 
otherwise on NT you application crashes on the end. Maybe this is your 
problem. Please let me know if this solves your problem.


cheers Edmar

Ing. E. Stoks
Software Engineer
Centric Information Engineering
The Netherlands
E-mail: edmar.stoks@hotmail.com
        edmar.stoks@centric.nl

Manual text:

These two calls are particularly important when writing a CORBA DLL on 
Windows NT that is to be used from ActiveX. If these calls are absent, the 
application will hang when the CORBA DLL is unloaded.







>From: "Stoks, Edmar" <Edmar.Stoks@centric.nl>
>To: "'EdmarStoks@hotmail.com'" <EdmarStoks@hotmail.com>
>Subject: FW: [omniORB] Beginners Question: ORB_Init in a GUI app.
>Date: Wed, 12 Jan 2000 19:40:22 +0000
>
>
> >
> >----------
> >From: 	A.A.Gerritsen
> >Sent: 	Wednesday, January 12, 2000 8:39:58 PM
> >To: 	omniorb-list@uk.research.att.com
> >Subject: 	[omniORB] Beginners Question: ORB_Init in a GUI app.
> >Auto forwarded by a Rule
> >
>Hello,
>
>I figgered out the cause of my crashes afterwards, after the program
>shuts
>down and all objects's deconstructors have been called.
>
>It is the initialisation of the ORB. I use a GUI app, so I have no argc
>and
>argv to pass to them. Unfortunately there is no other initialisation
>method
>(is there, I didn't find it?), so I hacked a bit like this:
>
>   int    pseudoargc = 1 ;
>   char** pseudoargv = new char*[1] ;
>   pseudoargv[0] = "SControl.exe" ;
>   m_theORB = CORBA::ORB_init(pseudoargc, pseudoargv ,"omniORB2") ;
>
>This works fine and my app does all it needs to do, besides causesing a
>crash afterwards. So this must be 'an invalid hack'.
>Question is then, how to solve this in a better way.
>
>BTW I use onmiORB 2.80, VC++ 6.0, NT4 SP6 and MFC, static linking and as
>sualual still need to include the dynamic lib.
>
>Best regards,
>
>Armin
>-
>"What really interests me is whether God had any choice in the creation
>of
>the world."
>  - Albert Einstein
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com