Re: [Vala] Builder member variable of a class problem




I get : 
"The application was terminated by a signal: SIGSEGV" when program enters into activate signal.

I try to do :
stdout.printf(this.builder.ref_count.to_string());

But also I get the same error, I think Builder object is null ...

You should be able to track down the error with a non-empty 'catch' block and an assertion.

...
catch (Error exc)
{
   stderr.printf ("%s\n", exc.message);
}
...

assert (this.builder != null);
Window window = (Window) this.builder.get_object("main");


Best regards,

Frederik

Now I get this error :

ERROR:test.vala:27:test_window_on_testButton_activate: assertion failed: (self->priv->builder != NULL)
Aborted (core dumped)
                                          
_________________________________________________________________
Discover the new Windows Vista
http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE


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