SecureBridge and multithreading

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
K-i-m
Posts: 2
Joined: Fri 14 Dec 2007 08:00
Contact:

SecureBridge and multithreading

Post by K-i-m » Fri 14 Dec 2007 08:41

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Fri 14 Dec 2007 14:58

Please, specify what error does arise?

K-i-m
Posts: 2
Joined: Fri 14 Dec 2007 08:00
Contact:

Post by K-i-m » Fri 14 Dec 2007 15:17

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.

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Mon 17 Dec 2007 08:21

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.

Post Reply