GLib_CRITICAL: g_io_channel_new_file() / win32



Hi,

when I use g_io_channel_new_file() with mingw32/win2k/FAT32 (see code
below) I get a GLib_CRITICAL error. I get the error in both cases, when
the file is / is not existing.

Is something wrong with my code?

I've read that the win32 version of GIOChannel is not finished, so I'd
like to know if this is an error I can or cannot evoid for now.

If this is a common error to you all, then, how would I open, close,
read, write files to on win32 using glib?

Thanks in advance,

Felix



code:
-----

GError          x1_gerror;
GError*         x1_gerror_p=&x1_gerror;

GIOChannel      x1_giochannel;
GIOChannel*     x1_giochannel_p=&x1_giochannel;

x1_giochannel_p=g_io_channel_new_file("./test.txt","r",&x1_gerror_p);




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