Hi Axel, Look Embedded.hs under `demo/embedded`, default it use `initGUI` and everything is okay, but when i changed it to `unsafeInitGUIForThreadedRTS` with `-threaded` flags. I will got below X error:
------------------------------> X error start <------------------------------ (Embedded:12316): Gdk-WARNING **: GdkWindow 0x5000003 unexpectedly destroyed The program 'Embedded' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 180 error_code 3 request_code 18 minor_code 0) (Note to programmers: normally, X errors are reported asynchronously; that is, you will receive the error a while after causing it. To debug your program, run it with the --sync command line option to change this behavior. You can then get a meaningful backtrace from your debugger if you break on the gdk_x_error() function.) ------------------------------> X error end <------------------------------ And this error not always occur, sometimes looks running well. So you need test *many* times if you want to recur this error. I guess X window changes when i `forkProcess` plugMain, but i'm not sure. It's make me crazy. Any idea? -- Andy ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ Gtk2hs-devel mailing list Gtk2hs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gtk2hs-devel