Hello,
 
After compiling Win32::GUI script with PerlApp PDK 6.0.2 and running it as EXE  Animation control freezes while fork() or system() are executed on the background to run CPU-intensive processes.
However, uncompiled .PL script runs fine - AVI file is being played OK.
Does anybody have a workaround ? or had a similar issue?
 
code looks similar to this:
 
sub btn_Start_Click {
$animation->Open(file.avi);
$animation->Play(0,-1,-1);
$animation->Show();
&runsomething();
}
sub runsomething {
open CH, "gpresult |";
while (<CH>) {
#do something...;
}
 # or :
system("gpresult");
close CH;
}
 
As mentioned above, perl script.pl runs just fine, though child process utilizes up to 99% of CPU time.
I have tried DoEvents() with no effect whatsoever.
 
Thank you,
Igor.