Problem with MyEmbConnection
Posted: Wed 08 Feb 2012 17:23
I'm using MySQL acces components in direct mode, so I don't know how has 'MyEmbConnection' appeared in clausule 'uses' of my Datamodule file.
Well, there is no problem unless you try to run this application on a computer where MySQL is not installed, then program fails and you get this error message: "Can't connect to MySQL server on 'localhost' (10061) Socket error on connect. WSAGetLastError return 10061($274D)" and program brokes.
I've solved this problem simple by deleting 'MyEmbConnection' in 'uses' but I'd like notify it to you for it seems a bit extrange, even when TMyConnection.Server is blank, TMyConnection.Option.Direct=True and TMyConnection.Options.Embedded=False, and it isn't trying to connect to a server yet.
Thanks.
Well, there is no problem unless you try to run this application on a computer where MySQL is not installed, then program fails and you get this error message: "Can't connect to MySQL server on 'localhost' (10061) Socket error on connect. WSAGetLastError return 10061($274D)" and program brokes.
I've solved this problem simple by deleting 'MyEmbConnection' in 'uses' but I'd like notify it to you for it seems a bit extrange, even when TMyConnection.Server is blank, TMyConnection.Option.Direct=True and TMyConnection.Options.Embedded=False, and it isn't trying to connect to a server yet.
Thanks.