glib question using GIOChannel



Hi all,

when I create a channel, add watches and close it with:

g_io_channel_shutdown(g_channel[i], FALSE, NULL));
while (g_channel[i]->ref_count > 1) g_io_channel_unref(g_channel[i]);
g_io_channel_unref(g_channel[i]);

Sometimes there seem to be still active watches, because sometimes they are 
called although the channel is already closed!
Do I have to remove the watches manually?

Greetings, Martin



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