Re: [gtkmm] Memory Leak?
- From: César González <cesargtk montevideo com uy>
- To: Christer Palm <palm nogui se>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Memory Leak?
- Date: Thu, 25 Mar 2004 16:54:43 -0300
Christer,
Thank you very much. It worked ok.
Regards
César
At 09.18 25/3/04, you wrote:
Hello César!
=?iso-8859-1?Q?César?= =?iso-8859-1?Q?_González?= wrote:
I think I'm forgetting something, because the memory leak is huge.
void HelloWorld::on_button_clicked()
{
while (1)
{
m_button.hide();
m_button.show();
}
}
I think it would be wise to give GTK a chance to process its event queue,
i.e.:
while (1) {
m_button.hide();
m_button.show();
while (Gtk::Main::events_pending()) {
Gtk::Main::iteration();
}
}
--
Christer
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]