Re: [gnet] Problems with GNet and GIOChannels...



I will comment on the underlying problem:

1) I always recommend that you use the newest release and try the version in CVS. We you may be running into a bug we already fixed.
2) I would recommend that you try GConn as Tim suggested.
3) I would recommend that you verify that your ref counting on your objects is correct. To do this, put print statements in glib (giounix.c and perhaps gmain.c) and in the gnet code. I find this is a huge problem. Have them print out the ref count and what function was called. I found this to be very usefully with debugging glib itself.
4)  I would recommend that you put break points where you put the print statements, take a break yourself and then come back and debugger should break to right place in glib, which you then can walk through glib, gnet and then your code. 

To answer your questions:
1) G_IO_IN and then a read of 0 bytes, or a G_IO_* error condition.
2) No.
3) See my suggestions above.

Andrew



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