Re: Segmentation fault in creating basic app using GTK+ (with C)



On Tue, Jul 01, 2014 at 01:39:03AM -0700, Anoop Neem wrote:
      p->one = textEntry;
      p->two = label;

Here the unititialised textEntry and label pointers are assigned to the
struct fields.

      textEntry = gtk_entry_new();
      calButton = gtk_button_new_with_label("Calculate");

And here, much laters, they are actually initialised.

Regards,

Yeti



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