|go ahead... be a heretic|
problem using fork in perl-tkby osamaamin (Initiate)
|on Nov 02, 2011 at 07:59 UTC||Need Help??|
osamaamin has asked for the
wisdom of the Perl Monks concerning the following question:
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