The ORB is a singleton, so each orb_init() actually returns the same ORB
instance. Calling run() on it more than once is what triggers the error.
You probably want to initialize and run the ORB in the main thread of
the program.
Clive
[EMAIL PROTECTED] wrote:
I'm new to CORBA thats why i am no so experienced in MICO.
Following situation:
My serverapplication should start x threads, every threadinstance should
declare a servant and this servant should be bind in the namespace.
the first execution of the thread works fine, but if the process starts
the second thread I've got the error:
"cabsrv2th: orb.cc:1342: void CORBA::ORB::run (): Assertion `!_is_running'
failed."
The problem is the nsadmin shows the two entries but with the same port
id.
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
nsadmin> iordump AddrBook2
Repo Id: IDL:IPBook:1.0
IIOP Profile
Version: 1.0
Address: inet:192.168.100.153:32825
Location: corbaloc::192.168.100.153:32825//3044/1140800363/0/%5f1
Key: 2f 33 30 34 34 2f 31 31 34 30 38 30 30 33 36 33
/3044/1140800363
2f 30 2f 5f 31 /0/_1
Multiple Components Profile
Components: Native Codesets:
normal: ISO 8859-1:1987; Latin Alphabet No. 1
wide: ISO/IEC 10646-1:1993; UTF-16, UCS Transformation
Format 16
-bit form
Key: (empty)
nsadmin> iordump AddrBook1
Repo Id: IDL:IPBook:1.0
IIOP Profile
Version: 1.0
Address: inet:192.168.100.153:32825
Location: corbaloc::192.168.100.153:32825//3044/1140800363/%5f0
Key: 2f 33 30 34 34 2f 31 31 34 30 38 30 30 33 36 33
/3044/1140800363
2f 5f 30 /_0
Multiple Components Profile
Components: Native Codesets:
normal: ISO 8859-1:1987; Latin Alphabet No. 1
wide: ISO/IEC 10646-1:1993; UTF-16, UCS Transformation
Format 16-bit form
Key: (empty)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
When simulate these 2 threads with 2 processes everything works fine.
The problem is i need to work with threads.
is there a solution for the problem?
thx for help marian
------------------------------------------------------------------------
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel
_______________________________________________
Mico-devel mailing list
[email protected]
http://www.mico.org/mailman/listinfo/mico-devel