Re: ORBit errors when reconnecting.



Craig Wright wrote:
> 
> Hi,
> 
> I'm using orbit-0.5.15 for connecting two processes written in
> C++.
> 
> What I do is:
> 1. Start my server.
> 2. Start the client for the first time, do some stuff.
> 3. Exit the client.
> 4. Start the client again. (server crashes, client crashes).
> 
> 
> The errors messages I get are:
> 
> On the server:
> 
> ORBit-CRITICAL **: file orbit_object.c: line 530 (ORBit_marshal_object): 
> assertion `ORBIT_ROOT_OBJECT(obj)->refs > 0' failed.

sounds like the server free'ed memory allready because client decreased 
ref-counter (calling CORBA::Object::release() too often).

If using C++-language-mapping of ORBit use 'Foo_var' variables instead 
of 'Foo_ptr' ('Foo' is your service interface) this might solve the 
problem. If using C-language-mapping of ORBit 'duplicate' the object 
reference before invocing remote methods.

> On the client: 
> ORBit-Message: demarshal_profile(): IIOP major is 0
> ORBit-Message: demarshal_profile(): IIOP major is 0
> ORBit-Message: demarshal_profile(): IIOP major is 0
> ORBit-Message: demarshal_profile(): IIOP major is 0
> ORBit-Message: demarshal_profile(): IIOP major is 0
> ORBit-Message: demarshal_profile(): IIOP major is 0
> Segmentation fault

don't know

Regards, Frank





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]