Re: Self help (3) ...



El d_ 22 Aug 2001 21:33:33 -0400, Michael Meeks escribi_

> * CORBA & re-enterancy
> 
>       for (l = priv->list; l; l = l->next)
>               bonobo_object_release_unref (l->data, NULL);
>       g_slist_free (priv->list);
> 
>       Then you quite possibly have a bug. This is due to the fact
> that a _release_unref performs a Bonobo_Unknown_unref[2] on a remote
> Bonobo object - and inbetween that unref returning, and the next
> element of the list being processed - it is entirely possible that the
> above loop has been re-entered and the list is now empty - leaving
> you with a pointer to floating memory.

Why the list can be empty? Can you put an example...

Thanks for your lessons.

Grettings







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