Re: CORBA_Object_release() bug ???
- From: Jules Colding <colding omesc com>
- To: KC <kcc1967 gmail com>
- Cc: ORBit2 <orbit-list gnome org>
- Subject: Re: CORBA_Object_release() bug ???
- Date: Thu, 12 May 2005 14:47:09 +0200
On Thu, 2005-05-12 at 17:55 +0800, KC wrote:
> 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 ?
You might try to add CORBA_ORB_destroy() before the CORBA_Object_release
(). Which ORBit2 version are you using?
--
jules
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]