RES: [gnet] gnet 1.1.8 crashing under Windows
- From: "Daniel K. O." <danielosmari yahoo com br>
- To: "GNet-ml" <gnet gnetlibrary org>
- Subject: RES: [gnet] gnet 1.1.8 crashing under Windows
- Date: Sun, 11 May 2003 00:03:39 -0300
I tracked down the problem; on gnet-private.c:
367 case DLL_PROCESS_DETACH:
368 /* The DLL unmapped from process's address space. Do necessary
cleanup */
369 {
340 g_source_remove(gnet_io_watch_ID);
341 g_free(gnet_iochannel);
342 DestroyWindow(gnet_hWnd);
This last line, DestroyWindow(), when commented, doesn't crash anymore. Can
I simply comment this line?
Daniel K. O.
> -----Mensagem original-----
> De: gnet-admin gnetlibrary org [mailto:gnet-admin gnetlibrary org]Em
> nome de Daniel K. O.
> Enviada em: sábado, 10 de maio de 2003 18:46
> Para: GNet-ml
> Assunto: [gnet] gnet 1.1.8 crashing under Windows
>
>
>
>
> Hello
>
>
> I downloaded and compiled the files from
> gnet-src-1.1.8-20030126.zip, using
> Dev-C++/MinGW 2.0 on Win98 SE.
> Those are my compiler flags:
>
>
> -DGNET_EXPERIMENTAL=1
> -mms-bitfields
> -Wall
> -mno-cygwin
>
>
>
> Everything compiled fine; I even wrote some test programs; they
> worked. BUT
> if I close a GTK+ program without calling any gnet function, it
> all crashes
> (a kernel32.dll error, seems to be something internal when the dll is
> unloaded).
>
> This is the code:
>
> ---
> #include <gtk/gtk.h>
> #include <gnet.h>
>
> GtkWidget *win;
>
> int main(int argc, char *argv[])
> {
> gnet_init();
> gtk_init(&argc, &argv);
> win = gtk_window_new(GTK_WINDOW_TOPLEVEL);
> g_signal_connect(G_OBJECT(win), "destroy",
> G_CALLBACK(gtk_main_quit), NULL);
> gtk_widget_show(win);
> gtk_main();
> return 0;
> }
> ---
>
> Closing the window makes the program crash (if I make a call to any gnet
> function, it'll work perfectly). Am I the only one with this
> problem? If so,
> could anyone give me a working gnet*.dll?
>
>
>
>
>
> Daniel K. O.
>
>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]