1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Why CreatProcess is failing some times

Discussion in 'MFC' started by manmfc, Oct 10, 2008.

  1. manmfc

    manmfc New Member

    Joined:
    Sep 22, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
    Hi,
    I have an MFC application running. When end user clicks on a button it should launch another application (.exe). I have used CreateProcess to do that with environment settings also. I tried with _spawnlp() and spawn versions also. But it is launching some times and it is failing some times. What could be the problem. Help me out
     
  2. oogabooga

    oogabooga New Member

    Joined:
    Jan 9, 2008
    Messages:
    115
    Likes Received:
    11
    Trophy Points:
    0
    It sounds like your logic (not the CreateProcess call specifically),
    so you haven't given us enough information.
     

Share This Page