Home > Community > Forums > PCB SKILL > about ipcBeginProcess in Windows 7 64 bit machine

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 about ipcBeginProcess in Windows 7 64 bit machine 

Last post Thu, Aug 9 2012 11:02 AM by Ejlersen. 5 replies.
Started by aeris 27 Jul 2011 10:49 PM. Topic has 5 replies and 3735 views
Page 1 of 1 (6 items)
Sort Posts:
  • Wed, Jul 27 2011 10:49 PM

    • aeris
    • Top 500 Contributor
    • Joined on Mon, May 17 2010
    • Posts 33
    • Points 435
    about ipcBeginProcess in Windows 7 64 bit machine Reply

    Hi,

    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

     thanks

     

    • Post Points: 20
  • Thu, Aug 2 2012 5:57 AM

    • Adamsen
    • Not Ranked
    • Joined on Tue, May 22 2012
    • Posts 8
    • Points 245
    Re: about ipcBeginProcess in Windows 7 64 bit machine Reply

    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? 

     

    • Post Points: 20
  • Thu, Aug 2 2012 10:04 AM

    • fxffxf
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • ., AK
    • Posts 296
    • Points 4,710
    Re: about ipcBeginProcess in Windows 7 64 bit machine Reply

    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.

    • Post Points: 20
  • Thu, Aug 2 2012 10:46 PM

    • Adamsen
    • Not Ranked
    • Joined on Tue, May 22 2012
    • Posts 8
    • Points 245
    Re: about ipcBeginProcess in Windows 7 64 bit machine Reply

    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)

     

    • Post Points: 5
  • Thu, Aug 9 2012 6:24 AM

    • Adamsen
    • Not Ranked
    • Joined on Tue, May 22 2012
    • Posts 8
    • Points 245
    Re: about ipcBeginProcess in Windows 7 64 bit machine Reply

    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

    • Post Points: 20
  • Thu, Aug 9 2012 11:02 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: about ipcBeginProcess in Windows 7 64 bit machine Reply

    Thanks for the nice words

     

    Regards from Ole at Nordcad

    Best regards Ole
    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by aeris at 27 Jul 2011 10:49 PM. Topic has 5 replies.