G
perl -v
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
....
== Begin of test.pl ==
use strict;
use warnings;
my $pid;
LaunchHostname();
print "waiting for child $pid to complete...\n";
my $waitstat = waitpid($pid,0);
print "waitpid returned $waitstat\n";
exit;
sub LaunchHostname {
$pid = fork ();
if (!defined($pid)) {
die "Failed to fork: $!\n";
}
elsif ($pid == 0) {
# This is the child
exec('hostname.exe'); # LINE 22
die "exec failed\n";
}
return;
}
== END of test.pl ==
fileserver123
waitpid returned -3592
fileserver123
Free to wrong pool fac720 not 8367c0 at script/test.pl line 22.
When I execute test.exe, the above error message is accompanied by a
pop up indicating "test.exe has encountered a problem and needs to
close. We are sorry for the inconvenience."
When I do all the above on a system with perl v5.10.0 installed, I do
not get the "Free to wrong pool" message but get a pop up that says:
'The instruction at "0x2800cd70" referenced memory at "0x00000028".
The memory could not be "read"'.
Any ideas why I get these errors?
This is perl, v5.8.8 built for MSWin32-x86-multi-thread
....
== Begin of test.pl ==
use strict;
use warnings;
my $pid;
LaunchHostname();
print "waiting for child $pid to complete...\n";
my $waitstat = waitpid($pid,0);
print "waitpid returned $waitstat\n";
exit;
sub LaunchHostname {
$pid = fork ();
if (!defined($pid)) {
die "Failed to fork: $!\n";
}
elsif ($pid == 0) {
# This is the child
exec('hostname.exe'); # LINE 22
die "exec failed\n";
}
return;
}
== END of test.pl ==
waiting for child -3592 to complete...perl test.pl
fileserver123
waitpid returned -3592
pp -o test.exe test.pl
waiting for child -1600 to complete...test.exe
fileserver123
Free to wrong pool fac720 not 8367c0 at script/test.pl line 22.
When I execute test.exe, the above error message is accompanied by a
pop up indicating "test.exe has encountered a problem and needs to
close. We are sorry for the inconvenience."
When I do all the above on a system with perl v5.10.0 installed, I do
not get the "Free to wrong pool" message but get a pop up that says:
'The instruction at "0x2800cd70" referenced memory at "0x00000028".
The memory could not be "read"'.
Any ideas why I get these errors?