has anyone have an issue with ipcBeginProcess? i have an exe program that need to be run from Allegro, running the exe outside Allegro does it job, but when calling it from allegro it does not work at all (not being called to be exact), is there an issue of ipcBeginProcess not working in Allegro win7 64 bit
i tried this ipcBeginProcess("notepad") and it is working and using ipcBeginProcess in an XP 32 bit machine is also working
*** shell is not an option since i need to run the exe without showing the cmd console window and I need to know when exe program finished its job
edit: using shell aside from the cmd console window was being shown the exe program was working
I have the same problem, after switching to windows 7 64-bit. The script was working on windows xp 32-bit.Did you find a solution to the problem?
when trying to start perl i get cid = ipcBeginProcess("perl.exe") ipcReadProcess(cid)"Cannot create child process 'perl.exe '; Error code: 50\n"
when running dir i get: cid = ipcBeginProcess("dir") ipcReadProcess(cid)"Cannot create child process 'dir '; Error code: 2\n"
Does anyone have a clue about those error codes?
In reply to Adamsen:
try giving a fully qualified path to perl.exe
dir is a builtin command to cmd.exe. I would suggest using the Skill function getDirFiles to get a directory listing.
In reply to fxffxf:
I gave it a go, but no luck. I also had made sure that perl was in the correct PATH before. But changing to full path did not do the trick (if I did it right)
pp = "c:\\Perl64\\bin\\perl.exe" pid = ipcBeginProcess(pp) ipcReadProcess(pid)"Cannot create child process 'c:\\Perl64\\bin\\perl.exe '; Error code: 50\n"
The example with dir, was only to try an other command, which resultet in an other error code. I have tried to find information about these error codes, but no luck so far. But I didnt actually think about dir was inside cmd.exe, I tried with date as well, as this is used as example in the manual, gave same error code. (Error code: 2)
I found a solution to my problem.
Trying to start a 64-bit program with ipcBeginProcess command is not good, and will result in Error code 50.
Reinstalling perl as 32-bit solved my issue. Thanks to support at nordcad.dk
Thanks for the nice words
Regards from Ole at Nordcad