Page 1 of 1

To Plash: Sample of Report AV_Error Send to support@devart

Posted: Sat 28 Nov 2009 04:11
by hlbzhx
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

Posted: Thu 03 Dec 2009 03:39
by hlbzhx
to Plash:
Are you Received Sample of My Send to [email protected]??


Quickly! thanks....

Posted: Fri 04 Dec 2009 13:08
by Plash
We have received your sample and now we are checking it.

Posted: Fri 04 Dec 2009 13:53
by Dimon
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:

Code: Select all

frmDM.Free;
before the line:

Code: Select all

Application.Terminate;

Posted: Sat 05 Dec 2009 02:09
by hlbzhx
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:

Code: Select all

frmDM.Free;
before the line:

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;
But, not occur this proplem that I used Ado Component, Why?

Posted: Mon 07 Dec 2009 08:39
by Dimon
It's possible that ADO uses another way to process OLEDB.