CORBA_Object_release() bug ???



Hi,

This question probably had been asked couple times, but I didn't
find any explanation about it ... so let me to ask it again.

A simple example:


#include <stdlib.h>
#include <orbit/orbit.h>

int main (int argc, char *argv[])
{
    CORBA_ORB orb;
    CORBA_Environment ev;

    CORBA_exception_init(&ev);
    orb = CORBA_ORB_init(&argc, argv, "orbit-local-orb", &ev);

    CORBA_Object_release((CORBA_Object)orb, &ev);
    CORBA_exception_free(&ev);
    exit(0);
}


Will cause error message at CORBA_Object_release():

** ERROR **: file orbit-object.c: line 146 (do_unref): assertion
failed: (robj->refs < ORBIT_REFCOUNT_MAX && robj->refs > 0)
aborting...
Aborted


Anyone know what's wrong ?


Thanks
KC
kccheng LinuxDAQ-Labs org


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