Newbie to GLib, i've began design a little program based on this library. The problem is that my proggie always eats 100% of CPU. I've then made a tiny prog just to isolate the problem and finally got this code as Main Function :
#include "windows.h"
#include "glib.h"
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
GMainLoop *MainLoop = NULL;
MainLoop = g_main_loop_new(NULL, TRUE);
g_main_loop_run(MainLoop);
}
Even this minimalist program eats 100% CPU. And i don't have any idea of what i'm doing wrong. So if there is something i've forgotten to do, please help me to understand :).
For information, i'm under Microsoft Visual Studio 2005 & using glib 2.12.9 (win32-dev)..
Thx for reading..
_______________________________________________ gtk-list mailing list gtk-list@xxxxxxxxx http://mail.gnome.org/mailman/listinfo/gtk-list