Re: Segmentation fault in creating basic app using GTK+ (with C)
- From: David Nečas <yeti physics muni cz>
- To: Anoop Neem <neemanoop gmail com>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Segmentation fault in creating basic app using GTK+ (with C)
- Date: Mon, 14 Jul 2014 13:40:08 +0200
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]