Re: CreateProcess FAILS
- From: "Anand" <a108d@xxxxxxxxxxx>
- Date: Wed, 27 Jun 2007 16:50:57 -0700
Hi Craig,
How did you get this resolved, CreateProcess also fails for me. I looked at
all the app & service development items, couldn't find anything missing.
Thanks
Anand
"Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:E613FF6E-01C6-4B27-B048-18D564E4A7DF@xxxxxxxxxxxxxxxx
Hi Chris,
Thank you for responding. As it turns out, I was missing a dependency in
my
OS. A rebuild with more app & service development items was able to
correct
the issue.
Thanks again,
Craig
"<ctacke/>" wrote:
The target executable is for the right processor? All of it's
dependencies
are also on the device (use depends.exe to check)?
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Managed Code in an Embedded World
www.OpenNETCF.com
"Craig" <Craig@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:2C3F8E6A-F510-4993-AE7B-117EF2BAD610@xxxxxxxxxxxxxxxx
Hello,
I am running into a strange problem on a system which I am building.
In
one
of my applications I am doing a "CreateProcess" call (See code below).
This
call always fails with a 126 error (The specified module could not be
found).
I have run this code on many other platforms without any problems. I
am
100% sure that the exe is present on the system and in the folder that
I
am
referencing (I can copy the file without a problem).
Is there anything in (or not in) the OS which would prevent this method
from
working properly?
Thank you for any help in advance.
Code:
PROCESS_INFORMATION ProcInfo;
memset(&ProcInfo,0,sizeof(ProcInfo));
if(!FileExists(lpszProc))
{
return FALSE;
}
BOOL bCreate = CreateProcess(lpszProc, lpszCmdLine, NULL, NULL, FALSE,
NULL, NULL, NULL, NULL, &ProcInfo);
if ( !bCreate )
{
DWORD dwError;
dwError = GetLastError();
RETAILMSG(TRUE,(L"\r\nCreateProcess ERROR: %d\r\n", dwError) );
}
return bCreate;
.
- Follow-Ups:
- Re: CreateProcess FAILS
- From: <ctacke/>
- Re: CreateProcess FAILS
- References:
- Re: CreateProcess FAILS
- From: <ctacke/>
- Re: CreateProcess FAILS
- From: Craig
- Re: CreateProcess FAILS
- Prev by Date: Re: KITL over USBSER
- Next by Date: WISH: A detailed list of difference between CE6.0 and CE5.0
- Previous by thread: Re: CreateProcess FAILS
- Next by thread: Re: CreateProcess FAILS
- Index(es):
Relevant Pages
|