Tmysqlmonitor gives error 10061

Discussion of open issues, suggestions and bugs regarding MyDAC (Data Access Components for MySQL) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
john_kuiper
Posts: 19
Joined: Tue 15 May 2012 09:34

Tmysqlmonitor gives error 10061

Post by john_kuiper » Wed 23 May 2012 13:36

Today I upgraded MyDac 5.8 to MyDac 7.1.6.
The database connection works fine sofar, but everytime I do a query to the database, I get a socketout error:
Project Bolwin.exe raised exception class SocketException with message 'Socket error 10061'.
This is only when TMySQLMonitor is set on a datamodule.

Must I set an extra option in TMysqlmonitor to get it work? DBMonitor 3.x als installed.
With version 5.8 there were no problemns at all

AndreyZ

Re: Tmysqlmonitor gives error 10061

Post by AndreyZ » Wed 23 May 2012 14:20

Hello,

Such behaviour is correct. If TMySQLMonitor.Active is True and there is no DBMonitor running or TMySQLMonitor.DBMonitorOptions.Port is incorrect, the 'Socket error 10061' error is generated. You will see this error only if you run your application from IDE. You will not see this error when you run the executable file of your application.

john_kuiper
Posts: 19
Joined: Tue 15 May 2012 09:34

Re: Tmysqlmonitor gives error 10061

Post by john_kuiper » Thu 24 May 2012 07:10

Okay.
It's still a strange behavour. Just like Indy FTP compoments in IDE.
Could this 'warning' solved in the near future. It's very annoying when debugging an application.

AndreyZ

Re: Tmysqlmonitor gives error 10061

Post by AndreyZ » Thu 24 May 2012 08:44

You can avoid this problem by setting the TMySQLMonitor.Active property to False, or by removing the moDBMonitor option from the TMySQLMonitor.Options property. Using any of these ways, you will not see the 'Socket error 10061' error.

Post Reply