Page 1 of 1

EScError "Cannot send data to Server"

Posted: Sun 17 Jun 2007 20:02
by teunis
Linux Server with sshd and MySQL running.
Windowsmachine with a program (D6) in which (Sc)FileStorage SSHClient and SSHChannel are used.
With the program some MySQL data are viewed on the Linux machine and everything is fine.
Before the program is stopped SSHCleint.DisConnect and SSHChannel.Disconnect
are executed.
This goes fine but then just before closing the above error is generated.
I can't debug because I have only the *.dcu version of SecureBridge.
Does anyone knows what caused the problem?
Thanks Teunis
:roll:

Posted: Mon 18 Jun 2007 12:01
by Dimon
The error that is generated before the program is stopped, is internal. It is catched by SecureBridge and is not shown to users. You can disable it in the menu Tools->Debugger Options->Language Exceptions if you do not want it to get in the debugger.

In order to connect to MySQL server using SSH, it is better to use the TMySSHIOHandler component. You can find this component in the SecureBridge demo of MyDAC 5.10.0.9, which available for download.

Posted: Mon 18 Jun 2007 18:51
by teunis
Thanks for your help.
I downloaded and installed the MySSHIOHandler.
It connected well with the database and I don't get the error anymore.
On the Linuxmachine I closed all ports except the 22 and it runs fine so I am sure it is going through the SSH tunnel.
Thanks
:D
menu Tools->Debugger Options->Language Exceptions
Should I Add: SecureBridge EScError Exception
(You let me see unknown places in the Delpi IDE)