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

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
hlbzhx
Posts: 19
Joined: Tue 03 Nov 2009 03:29

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

Post by hlbzhx » Sat 28 Nov 2009 04:11

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

hlbzhx
Posts: 19
Joined: Tue 03 Nov 2009 03:29

Post by hlbzhx » Thu 03 Dec 2009 03:39

to Plash:
Are you Received Sample of My Send to [email protected]??


Quickly! thanks....

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 04 Dec 2009 13:08

We have received your sample and now we are checking it.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 04 Dec 2009 13:53

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;

hlbzhx
Posts: 19
Joined: Tue 03 Nov 2009 03:29

Post by hlbzhx » Sat 05 Dec 2009 02:09

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?

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 07 Dec 2009 08:39

It's possible that ADO uses another way to process OLEDB.

Post Reply