Re: [gtkmm] Spawning a new windows from toplevel window
- From: Max Vasin <max-appolo mail ru>
- To: Gtkmm Mailing List <gtkmm-list gnome org>
- Subject: Re: [gtkmm] Spawning a new windows from toplevel window
- Date: 05 Sep 2004 13:00:27 +0400
Jaroslaw Mroczek <jaroslaw mroczek wp pl> writes:
> Yes, obviously it is simple ... if you don't forget to allocate memory
> for Window what I did in my app ;).
Well, here you misunderstand C++ - you need to allocate window object in heap
(create it with the 'new' operator).
> > SignalWindow* m_signal_window = new
> > SignalWindow(pointer_to_signal_record);
> > m_signal_window->show();
>
> With the code:
>
> SignalWindow m_signal_window ;
> m_signal_window.show();
>
> it simply doesn't work.
Yes, it doesn't work - when execuation flow leaves the block where window was
created the window will be destoyed.
--
With best regards, Max Vasin.
JID: maxvasin jabber ru
ICQ: 276438891
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]