Page 1 of 1

SecureBridge and multithreading

Posted: Fri 14 Dec 2007 08:41
by K-i-m
I use SecureBridge to provide secure connection with MySQL.
(via TMySSHIOHandler and TScSSHClient).
For example I have three connections to DB ( each connection in separate thread).
TScSSHClient object I create in main thread.
TMySSHIOHandler objects I create in connection threads.
But I have an errors trying open DB connection.
May be it's a wrong way.
Could you please specify using ssh connections in threads.

Posted: Fri 14 Dec 2007 14:58
by Dimon
Please, specify what error does arise?

Posted: Fri 14 Dec 2007 15:17
by K-i-m
If I create TScSSHClient in main thread When I call ScSSHClient.Connect from another thread An Access Violation on 0x0000 is arrived.

If I create TScSSHClient in the same thread as the TMyConnection object - it works but Explorer(TaskBar) is freezed.

Posted: Mon 17 Dec 2007 08:21
by Dimon
We can not reproduce the problem.
Please send me a complete small sample to dmitryg*crlab*com to demonstrate it.

Also supply us the following information
- exact version of Delphi or C++Builder;
- version of your operating system.