memory leak on windows
- From: Gaetano Guerriero <gaetano guerriero spacespa it>
- To: gtk-app-devel-list gnome org
- Subject: memory leak on windows
- Date: Fri, 2 Mar 2012 13:31:10 +0100
Greetings,
this code leaks memory on Windows XP until the program crashes after some
minutes:
=======================
#include "gtk/gtk.h"
static gboolean progressbar_pulse(gpointer data) {
gtk_progress_bar_pulse(GTK_PROGRESS_BAR(data));
return TRUE;
}
int main(int argc, char *argv[]) {
GtkWidget *window, *progressbar;
gtk_init(&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
progressbar = gtk_progress_bar_new();
gtk_container_add(GTK_CONTAINER(window), progressbar);
gtk_widget_show_all(window);
g_timeout_add(50, progressbar_pulse, progressbar);
gtk_main();
return 0;
}
=======================
The error after the crash:
======================
(leak.exe:2420): Gdk-WARNING **: gdkgc-win32.c:830: SaveDC failed: Memoria insufficiente per eseguire il
comando.
(leak.exe:2420): Gdk-WARNING **: gdkgc-win32.c:970: RestoreDC failed: Parametro non corretto.
(leak.exe:2420): Gdk-WARNING **: gdkpixmap-win32.c:279: CreateDIBSection failed: Parametro non corretto.
**
Gdk:ERROR:gdkdrawable-win32.c:2040:_gdk_win32_drawable_finish: assertion failed: (impl->hdc_count == 0)
This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
======================
I'm using "all-in-on bundle" for windows 2.24.10-20120208_win32 from gtk.org
website, and I compile with MinGW.
Any suggestions ?
Gaetano
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]