osamaamin has asked for the wisdom of the Perl Monks concerning the following question:
hi.
i m building a GUI based script in which the user is prompted for some input. when a button is pressed, a long time consuming command starts which freezes the GUI. in order to overcome this problem, i tried using fork but the script crashes with the following error msg:
perl: xcb_io.c:221: poll_for_event: Assertion `(((long) (event_sequence) - (long) (dpy->request)) <= 0)' failed.Abort (core dumped)
this is my general program structure:MAIN GUI :
when button pressed, fork a new process to do background processing so that gui not freeze.
notify the user when background processing completes (child process ends)
BACKGROUND PROCESS:do some time consuming work
exit
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem using fork in perl-tk
by RichardK (Parson) on Nov 02, 2011 at 08:39 UTC | |
by osamaamin (Initiate) on Nov 02, 2011 at 08:47 UTC | |
|
Re: problem using fork in perl-tk
by zentara (Cardinal) on Nov 02, 2011 at 12:32 UTC |