On 11/27/2010 05:32 PM, Jannis Pohlmann wrote:
On Sat, 27 Nov 2010 12:14:39 +0100
Jaroslav Šmíd wrote:
Is it possible to "cancel" construction in gobject-derived class?
Lets say I have GMyObject derived from GObject. In its init function
I need to spawn a thread. When that fails, I would like
On Sat, 27 Nov 2010 12:14:39 +0100
Jaroslav Šmíd wrote:
> Is it possible to "cancel" construction in gobject-derived class?
>
> Lets say I have GMyObject derived from GObject. In its init function
> I need to spawn a thread. When that fails, I would like to cancel
> construction of the object (
On 27 November 2010 11:14, Jaroslav Šmíd wrote:
> Is it possible to "cancel" construction in gobject-derived class?
I don't think so. Lots of code (including code inside gobject) assumes
that g_object_new() always returns a valid pointer.
I handle this by having a more complicated init system. I
Is it possible to "cancel" construction in gobject-derived class?
Lets say I have GMyObject derived from GObject. In its init function I
need to spawn a thread. When that fails, I would like to cancel
construction of the object (so that gobjectclass' finalize function
would be called on the ob