BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

External exception EEFFACE

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language)
View previous topic :: View next topic  
Author Message
Jurristi
Guest





PostPosted: Thu Apr 26, 2007 3:32 pm    Post subject: External exception EEFFACE Reply with quote



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
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Language) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.