Re: [gtkmm] Memory Leak?
- From: Christer Palm <palm nogui se>
- To: =?iso-8859-1?Q?César?= =?iso-8859-1?Q?_González?= <cesargtk montevideo com uy>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Memory Leak?
- Date: Thu, 25 Mar 2004 13:18:17 +0100
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]