Error when close application

Forum related to MySQL

Moderators: gto, cipto_kh, EgonHugeist

Post Reply
SAN_i
Fresh Boarder
Fresh Boarder
Posts: 1
Joined: 15.01.2010, 09:52
Contact:

Error when close application

Post by SAN_i »

Hello.
I`m write my program that using dll.
In one of my dll i have form with TZConnection. For connecting and disconnecting i use method "Connect" and "Disconnect".
So, if i was do connect then when i close my application i have error:
Project F:\Main\Fitnes.exe raised too many consecutive exeptions: 'access violation at 0x06af554e: read of address 0x06ea9e60'.
I`m using: Delphi2010, MySQL 5.0, ZEOSLIB_TRUNK_REV741

Please, help me.
mparak
Senior Boarder
Senior Boarder
Posts: 81
Joined: 12.09.2005, 06:51
Location: Durban South Africa
Contact:

Error on Exit

Post by mparak »

Hi
In the form's on close or close event try to :
If Zconnection1.connected then Zconnection1.disconnect;
This should close the open connection before the form is destroyed.
Regards
M
Mohammed Parak
CAD RETAIL
Durban South Africa
http://www.cad.co.za
Post Reply