Re: Crashing with widgets as class members
- From: Murray Cumming <murrayc murrayc com>
- To: "John C. Spray" <spray lyx org>
- Cc: gtkmm-list gnome org
- Subject: Re: Crashing with widgets as class members
- Date: Fri, 10 Feb 2006 17:45:55 +0100
On Fri, 2006-02-10 at 16:32 +0000, John C. Spray wrote:
> 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.
That would probably be hiding some other problem. Reducing it to a
simple compilable test case would probably show the problem.
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]