[Vala] Builder member variable of a class problem
- From: John - <arenal85 hotmail com>
- To: <vala-list gnome org>
- Subject: [Vala] Builder member variable of a class problem
- Date: Wed, 30 Sep 2009 10:08:34 +0000
I have this code :
public class TestWindow : GLib.Object
{
private Builder builder;
public TestWindow ()
{
this.builder = new Builder();
try
{
this.builder.add_from_file ("test.ui");
}
catch (Error exc)
{
}
this.builder.connect_signals (this);
}
[CCode (instance_pos = -1)]
public void on_testButton_activate(Button sender)
{
Window window = (Window) this.builder.get_object("main");
}
}
}
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 ...
_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]