Sample of Report AV_Error Send to [email protected]
FileName: AV_Error_Test.rar In this File Include Create Script of TestDB
Please Receive
Thanks
Delphi7 + Unidac 3.00.0.4
To Plash: Sample of Report AV_Error Send to support@devart
This problem is arised because when you call Application.Terminate at first finalization section of units is called, where CoUninitialize is called, and after this occurs freeing of TUniConnection, that calls COM methods that genarate the error.
To solve the problem insert the following code:before the line:
To solve the problem insert the following code:
Code: Select all
frmDM.Free;
Code: Select all
Application.Terminate;
----------------------------------------------------------Dimon wrote:This problem is arised because when you call Application.Terminate at first finalization section of units is called, where CoUninitialize is called, and after this occurs freeing of TUniConnection, that calls COM methods that genarate the error.
To solve the problem insert the following code:before the line:Code: Select all
frmDM.Free;
Code: Select all
Application.Terminate;
I soleved this problem by the following code:
Code: Select all
Application.CreateForm(TfrmDM, frmDM);
try
...
...
...
finally
frmDM.Free;
end;