Discussion:
[omniORB] Multiple orb instance problem
Li Yi
2008-04-18 19:37:32 UTC
Permalink
My application has a windows exe and windows dll. Each of them has its own orb instance.? Two orb instance is initialized in different thread.
The problem is:
When one orb is shutdown,? another one will encounter call execption.
Any one knows how to deal with this problem?
The omniorb version is 4.0.7. And compiler is MSVC V7.1.
thanks



____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Alberto Casado Martín
2008-04-19 01:51:46 UTC
Permalink
Hi,
As far as I know, omniORB uses a static internal variable for the orb
object. I think initializing twice or more time has no effect, you
only have one, so if you shutdown one , you shutdown all.


Regards

Alberto.
My application has a windows exe and windows dll. Each of them has its own orb instance. Two orb instance is initialized in different thread.
When one orb is shutdown, another one will encounter call execption.
Any one knows how to deal with this problem?
The omniorb version is 4.0.7. And compiler is MSVC V7.1.
thanks
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
Ashish Kumar Sharma
2008-04-21 11:39:40 UTC
Permalink
Hi I am also facing a related issue where in I want the ORB initialization to be done twice. The first initialization happens in the static library consumed in my application and second in the dynamic loaded library. Please note these libraries could be used in separate contexts/applications as well so doing the ORB initialization once in my application itself is something I cannot afford to do. But I was interested in knowing why the ORB instance is static? Is this to keep up with the specification? (I am not sure if it is.. so need some light on this).


Regards
Ashish

-----Original Message-----
From: omniorb-list-***@omniorb-support.com [mailto:omniorb-list-***@omniorb-support.com] On Behalf Of Alberto Casado Mart?n
Sent: Saturday, April 19, 2008 1:22 AM
To: Li Yi
Cc: omniorb-***@omniorb-support.com
Subject: Re: [omniORB] Multiple orb instance problem

Hi,
As far as I know, omniORB uses a static internal variable for the orb
object. I think initializing twice or more time has no effect, you
only have one, so if you shutdown one , you shutdown all.


Regards

Alberto.
My application has a windows exe and windows dll. Each of them has its own orb instance. Two orb instance is initialized in different thread.
When one orb is shutdown, another one will encounter call execption.
Any one knows how to deal with this problem?
The omniorb version is 4.0.7. And compiler is MSVC V7.1.
thanks
____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile.. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
_______________________________________________
omniORB-list mailing list
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
Continue reading on narkive:
Loading...