MyConnection->Connect()........ hang until connected...
Posted: Fri 27 Jan 2006 11:25
I've a problem.
I am building an DLL (with borland c++ builder 6) witch contains a MyConnection, MyQuery and a MyTable.
Everithing is working fine but there is only one big problem....
when i try to connect with a mysql server in a network my whole program hangs and waits until the connection is established..... I want to keep the program running.... Can i put this (MyConnection->Connect()) into a thread? How can i do this......... i tried this already but the program is still hanging until connected...
Could somebody help me.
I am building an DLL (with borland c++ builder 6) witch contains a MyConnection, MyQuery and a MyTable.
Everithing is working fine but there is only one big problem....
when i try to connect with a mysql server in a network my whole program hangs and waits until the connection is established..... I want to keep the program running.... Can i put this (MyConnection->Connect()) into a thread? How can i do this......... i tried this already but the program is still hanging until connected...
Could somebody help me.