Bug report: TSqlMonitor.Active= true => exit() fails

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
albourgz
Posts: 147
Joined: Wed 06 May 2009 12:17
Location: belgium

Bug report: TSqlMonitor.Active= true => exit() fails

Post by albourgz » Fri 24 Apr 2020 12:04

Hi,
using unidac 8.1.2 on c++ builder 10.3.2.
New project, vcl win32.
Drop a TuniConnection, set database to oracle, no need to connect it.
drop a TOracleUniProvider and a TUniSQLMonitor1

in the form's constructor, type
exit(1000);

Run the program. The exit will not work.
Uncheck the SQLMonitor.Active. Build program. It works.

So when there is a SQLMonitor component, activated, it prevents the program to exit normally, with an exception:
---------------------------
Debugger Exception Notification
---------------------------
Project Project112.exe raised exception class $C0000005 with message 'access violation at 0x77373cb3: write of address 0x00000014'.
---------------------------
Break Continue Help
---------------------------

The exception happens always, no matter if the connection is active or not.
Regards.

MaximG
Devart Team
Posts: 1437
Joined: Mon 06 Jul 2015 11:34

Re: Bug report: TSqlMonitor.Active= true => exit() fails

Post by MaximG » Thu 30 Apr 2020 07:07

Please create and send us a full sample project where the issue can be reproduced. For your convenience, please use the e-support form https://www.devart.com/company/contactform.html

Post Reply