Monks,
I have a perl Tk program that displays a network on a Canvas. Upon clicking a certain place on the canvas, I fork a process and immediately exec() a new process.
if (!($pid = fork))
{
# child process -- returns with 0 as pid
exec('/root/Phase2/OperatorView4/recurse5.pl', $btnMpIp);
} else { # we are in parent process; Store the process ID of the chil
+d in the hash
$hash_ref->{$btnMpIp}->{processid} = $pid;
}
}
The exec'd program is also a Perl/Tk program. It basically queries certain nodes an displays a graph and is a bit time consuming. It is/was working great up until I decided to display a progressbar to indicate progress. Now I intermittently get the following error
Xlib: unexpected async reply (sequence 0x8d)!
X Error of failed request: BadIDChoice (invalid resource ID chosen for
this connection)
Major opcode of failed request: 53 (X_CreatePixmap)
Resource id in failed request: 0x480000d
Serial number of failed request: 145
Current serial number in output stream: 143
What would be the reason for this and why does it happen intermittently?
Thank you much in advance