Re: critical error in bonobo_object_unref(): assertion `ao != NULL' failed



Hi Ben,

On Tue, 2003-09-09 at 04:17, Ben Liblit wrote:
> I'm still stuck on this.  The behavior I want is for the server to start 
> when any client activates it, and for the server to remain active as 
> long as it has at least one client.  When the last client exits, the 
> server should exit too.  And I'm trying to do this without a factory.

	Well - the "without a factory" is a totally artificial limitation
AFAICS - there should be no problem wrapping this in an infinite number
of factories; the factory just returns the static global instance - with
an incremented ref count.

	Secondly - this is possible with a singleton factory, but as b-a-s does
no reference counting, not using the ref count for lifecycle tracking.
Either way if you want to reliably detect client death reference
counting is a nightmare, better to listen on a client's connection
handle for 'broken' using ORBit_small_listen_for_broken and it's
friends.

	HTH,

		Michael.

-- 
 michael ximian com  <><, Pseudo Engineer, itinerant idiot




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