When the program is handed over to the customer, an unknown error occurred after running, and the programmer generally does not get an accurate error field message, and the best program can record itself. Special consideration, there is a better way to mention:
The error handler defined in the main unit is as follows: Unit1.h void __fastcall appexception (TOBJECT * Sender, Exception * E);
Unit1.cppvoid __fastcall tform1 :: formcreate (TOBJECT * Sender) {Application-> Onexception = APPEXCEPTION;
Void __fastcall tform1 :: appException (TOBJECT * Sender, sysutils :: exception * e)
{// can then record the following three types of information in the file // __ file__; source file name // __ line__; source file error occurred line number // now (); error occurrence time Application-> ShowException (e);}
The first time I sent a document, see the effect, don't read the communication: lih0712@163.net