Re: RES: [gnet] gnet 1.1.8 crashing under Windows



Daniel,

Yes, if that is causing you problems you can comment that line  out if you like. It is there for completeness. I will put it on my list of things to look into.

Andrew

In a message dated 5/10/2003 10:03:39 PM Eastern Standard Time, danielosmari yahoo com br writes:

> 
> 
> 
> 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.
>  >
>  >
> 
> _______________________________________________
> gnet mailing list
> gnet gnetlibrary org
> http://www.gnetlibrary.org/mailman/listinfo/gnet
> 
> 
>




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]