Application doesnt work, installing dbmonitor causes permanent crash

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
iskywalker
Posts: 16
Joined: Mon 25 Jun 2007 15:00

Application doesnt work, installing dbmonitor causes permanent crash

Post by iskywalker » Tue 02 Oct 2007 13:33

Hello!
We have some very nasty issues:
For some reason (probably our problem) some statements doesnt work, select does, but functions like insert doesnt work anymore (maybe the application doesnt get so far). We log although the select statements and they are made correctly. We installed then dbmonitor (yes 2 times this happened till now, which we debug. They claim it happens very frequently, that our application doesnt work well, but a new start fix it). The problem is dbmonitor doesnt show nothing. restarting the application doesnt work. deleting the user and re-adding the user on windows xp fixes the problem. We dont have a clue what could it possibly be, but the 2 times we installed dbmonitor while the application was running(we didnt want to restart since when we restart the problem is fixed) harmed our apllication so bad, we could even show the 1. form.
Any ideas what it could be or how to avoid it?
Thx in advance.
(our application was made with mydac 5.00.1.7 with delphi 7 dbmonitor was 2.10)

Antaeus
Posts: 2098
Joined: Tue 14 Feb 2006 10:14

Post by Antaeus » Tue 02 Oct 2007 14:49

Your application and DBMonitor must be started under the same user's account. If you run them under different accounts, monitoring will not work.
If you cannot ensure running DBMonitor and your application under the same account, you can use another two ways to log SQL queries:
1) add a handler to the OnSQL event of the TMyMonitor component in your application;
2) enable logs of MySQL, for more information see the log option description in the MySQL Reference Manual.

iskywalker
Posts: 16
Joined: Mon 25 Jun 2007 15:00

Post by iskywalker » Tue 02 Oct 2007 15:01

Hello Thank you for your answer!
DBmonitor was started under the same account! Although the account is very limited, but this was in the 2nd case, in the first case it was with normal privileges. in the second case we tryied to run it as administrator:
runas /user:Administrator dbmonitor
Logging the application is a nice idea (which i already thought to use), but it does explain why the application does crash on the start, and why dbmonitor doesnt show nothing (after and before closing the broken apllication). Logging the mysql directy on the server isnt also an option for us, since the error of our application is hard the reproduce and the enterprise in which our apllication is running have lots of access, so it would be like to look for a needle in a haystack.
Is there a way in which dbmonitor can compromise the running application so severily that it crashes?

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

Post by Plash » Mon 08 Oct 2007 10:17

We could not reproduce the problem with the application crashing after installing DBMonitor. Please specify the exact version of DBMonitor you are using. Also please specify is the application crashes every time when you install DBMonitor.

vvitolo
Posts: 10
Joined: Fri 26 Aug 2005 21:45
Location: S/C de Tenerife

Post by vvitolo » Fri 12 Oct 2007 08:29

You can use any other addons to try to solve your problem, eg EurekaLog or something similar. With something like that, you can go to the exact line of source code and the error can be revised.

Sorry for my poor english.

Post Reply