Jurristi Guest
|
Posted: Thu Apr 26, 2007 3:32 pm Post subject: External exception EEFFACE |
|
|
I have a program that calls the other program like this:
this->Hide(); // hide application 1.
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) );
AnsiString SolverPath=ExePath+"..\\Solver\\Solver.exe";
// Start the child process.
if( !CreateProcess(
SolverPath.c_str(),
NULL, // Command line
NULL, // Process handle not inheritable
NULL, // Thread handle not inheritable
FALSE, // Set handle inheritance to FALSE
0, // No creation flags
NULL, // Use parent's environment block
NULL, // Use parent's starting directory
&si, // Pointer to STARTUPINFO structure
&pi ) // Pointer to PROCESS_INFORMATION structure
)
// Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE );
// Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
this->Show(); // show application 1.
In this other program I have a iteration loop
while( newiter && ( !Form1->AbortIteration) )
{
....
Application->ProcessMessages();
....
}
User can abort iteration by pressing a button that will change value
of AbortIteration to true.
When I aborted execution several times I got error message "External
exception EEFFACE". Any idea what causes this and how to avoid it ?
~Pauli |
|