Sorry I didnt know what title to set. Basically when i compile an executable in Oxygen and execute it from my IDE
everything works as expected. I can re-invoke it as many times as i want and re-compile in any way.
But when i compile a dll, and invoke a tester app, it executes fine, 1 or two times. Afterwards, CreateProcess() always
returns 0 and the PROCESS_INFORMATION header's member: hProcess always comes empty.
Maybe something is not freeing correctly after execution?
This is happening with headers intact, no modifications from me. Can you give it a try Charles? Attached are the DLL and EXE
im executing. I can re-invoke them as many times as i want from the windows explorer, but when invoking them
programmatically with CreateProcess(), something is not right. Im using this for invoking the executable:
Result = CreateProcess(ByCopy executable, _
ByCopy commandline, _
SecAttrib, _
SecAttrib, _
%True, _
%NORMAL_PRIORITY_CLASS, _
ByVal StrPtr(EnvData), _
ByVal VarPtr(PathToCGI), _
StartInfo, _
ProcInfo)
This works fine for any other executables (oxygen or PowerBASIC), except for oxygen executables that require a DLL, which fails after second or third attempt, or worse... crashes the whole IDE with a runtime error at user32.dll.