Code: Select all
sub cmdRun {
my ($exe) = @_;
my $pid = fork();
if(not $pid){
exec($exe);
exit(0);
}
return 1;
}
macro testit {
$ret = cmdRun("start.exe --plugins=control\\plugins")
log testit $ret
}
And the first orignal openkore exe instance will report "stop working" windows error either when quiting.Wide character in print at F:/MyDoc/kore/openkore_ready/src/ErrorHandler.pm
line 33.
This program has encountered an unexpected problem. This is probably because
of a recent server update, a bug in this program, or in one of the plugins.
We apologize for this problem. You may get support from IRC or the forums.
A detailed error report has been saved to errors.txt. Before posting a bug
report, please try out the SVN version first. If you are already using the SVN
version, search the forums first to see if your problem had already been solved,
or has already been reported. If you truly believe you have encountered a bug in
the program, please include the contents of the errors.txt in your bug report,
or we may not be able to help you!
The error message is:
Cannot load interface Interface::Wx. Error:
Can't locate Wx/Perl/Packager.pm in @INC (@INC contains: src src/deps F:/MyDoc/k
ore/ttro/openkore_ready/src/deps F:/MyDoc/kore/openkore_ready/src F:/MyDoc/
kore/ttro/openkore_ready .) at src/Interface/Wx.pm line 31.
BEGIN failed--compilation aborted at src/Interface/Wx.pm line 32.
Compilation failed in require at (eval 247) line 1.
BEGIN failed--compilation aborted at (eval 247) line 1.