Re: CreateProcess FAILS

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



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;







.



Relevant Pages

  • Re: Not a valid Windows CE Application Error on my platform
    ... Are we talking a managed app or a native app? ... Chris Tacke, Embedded MVP ... so it must be something in my platform that is missing or wrong. ... beitman AT applieddata DOT net ...
    (microsoft.public.windowsce.platbuilder)
  • Re: x64 delphi app fails with application verifier...
    ... It ended up being an old version of app verifier, 4.0.0665, I was ... As I see this it fails on the Int 3 that Application ... in the x64 documentation cause I am truly lost at this behavior. ...
    (alt.comp.lang.borland-delphi)
  • Re: swpruncmd() - limit of calls
    ... > Do the DOS sessions close down cleanly between iterations?? ... > The programm fails after NN hours continuous job. ... My app. ...
    (comp.lang.clipper)
  • Re: how much harder is Windows C API than C#/.NET
    ... anyway, great chunks of it are missing from C#, it's its biggest weakness ... VB6 for ease of programming, it is very quick indeed to put an app ... I like C and the API but it takes longer to ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: VisualStudio .NET 2003?
    ... app runs though, the *methods* that you use are JITted to native code and ... Pinvoke for what is missing (or use existing wrappers such as the SDF ... >> environment. ...
    (microsoft.public.pocketpc.developer)