Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 20:55 +0800, Andy Stewart wrote: > >> But strange is this error not always occur. > >> > >> If i remove `keyPress` callback. > >> Just fork child process in `socektMain` like below: > >> > >> --> fork in socketMain start > >> <--

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
Axel Simon writes: > On Mon, 2009-11-23 at 19:53 +0800, Andy Stewart wrote: >> It's newsest version of Embedded.hs (that use EventM instead Events) > > I was asking if you used the repository from yesterday because I did fix > some concurrency bugs that could trigger the Xlib message. Could you >

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
On Mon, 2009-11-23 at 19:53 +0800, Andy Stewart wrote: > It's newsest version of Embedded.hs (that use EventM instead Events) I was asking if you used the repository from yesterday because I did fix some concurrency bugs that could trigger the Xlib message. Could you compile against the latest dar

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
It's newsest version of Embedded.hs (that use EventM instead Events) But strange is this error not always occur. If i remove `keyPress` callback. Just fork child process in `socektMain` like below: --> fork in socketMain start <-- forkPlu

Re: [Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Axel Simon
Oh dear, is this with the darcs repository from yesterday? Although I'm not quite sure if this is a concurrency bug at all. Axel. On Mon, 2009-11-23 at 18:55 +0800, Andy Stewart wrote: > Hi all, > > In file `demo/embedded/Embedded.hs` > (or > ) have below code snippets in function `socketMain

[Gtk2hs-devel] Socket process crash when fork Plug process with key press.

2009-11-23 Thread Andy Stewart
Hi all, In file `demo/embedded/Embedded.hs` (or -- Use GtkSocket and GtkPlug for cross-process embedded. -- Just startup program, press 'Alt-m' to new editor, press `Alt-n` to new terminal. -- And those plug widget (editor, terminal) running in child-process, -- so program won't crash when child