Why CreatProcess is failing some times

manmfc's Avatar, Join Date: Sep 2008
Newbie Member
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
0
oogabooga's Avatar
Ambitious contributor
It sounds like your logic (not the CreateProcess call specifically),
so you haven't given us enough information.