Re: Crashing with widgets as class members



On Fri, 2006-02-10 at 09:20 -0600, Bob Caryl wrote:
> If you include a widget in a class where that widget's instantiation 
> would occur before Gtk has been initialized, you will see this 
> behavior.  You need to include your classes as pointers and not 
> instantiate them until you're actually ready for them to come into 
> existance.

My class containing widgets is created with "new" long after the start
of the program, after other classes using gtkmm have functioned
correctly (and Gtk::Main) has been called.

TBH it seems like it's going to be easier to just switch to
pointer-members than get to the bottom of this.  End-of-the-week-itis.

John




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