Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

CreateProcess Application Error (0xc0000005)

$
0
0

I'm trying to run an exe through windows api using CreateProcess() command. 

 

So I have a function that specifically creates this exe process and then evaluates the outcome of the exe.

 

My issue is this:

- if I were to have this function in a separate project and execute it as a main or DLL (through TestStand), I do not have any issues whatsoever.

- If I take this independent project as (DLL and/or LIB), I would get an error as the attached image.

 

At first I thought I was missing <stdio.h> but that did not resolve my issue. 

 

I'm executing the following:

 

test = CreateProcess( NULL,
cmd_command,
NULL,
NULL,
FALSE,
CREATE_DEFAULT_ERROR_MODE | DETACHED_PROCESS,
NULL,
NULL,&Startup_Info,&Process_Info);

 

Edit: added another photo that may be of clue to some, but I got a fatal run-time error. Also, I found this, but I don't think it applies to me as I'm not using user.dll


Viewing all articles
Browse latest Browse all 5357