RAD Studio C++ 2010 and SecureBridge
Posted: Tue  11 May 2010 09:07
				
				Hello,
Our company used SecureBridge for CBuilder6 and wrote a small dialog program to run a job on a Linux machine, and everything worked fine.
We then moved to RAD Studio C++ 2010 and got the SecureBridge module for 2010. We migrated the old code and at first we thought everything was fine. However we soon found that the dialog program only worked once, meaning the program could not call the dialogue program a second time and work.
The dialog program comprises of a TScFileStorage, TScSSHClient, and a TScSSHShell component. The program has three functions a “connect” that issues a ScSSHShell->Connect, a command to send a ScSSHShell->WriteString(Message) message to run the job, and finally a ScSSHShell->Disconnect().
When you run the dialog box a second time and it fails the responses are as follows:
The “connect” triggers the shell AsyncReceive and we get the login message from the Linux machine.
The “WriteString” actually sends the message to the Linux machine and the job is created, however there is no AsyncReceive data received to show that the command was processed. (NonBlocking is true).
Basically we have been using this code under C++ Builder6 and now under RAD Studio C++ 2010 it works just once, so what new feature am I missing?
Regards Dave
			Our company used SecureBridge for CBuilder6 and wrote a small dialog program to run a job on a Linux machine, and everything worked fine.
We then moved to RAD Studio C++ 2010 and got the SecureBridge module for 2010. We migrated the old code and at first we thought everything was fine. However we soon found that the dialog program only worked once, meaning the program could not call the dialogue program a second time and work.
The dialog program comprises of a TScFileStorage, TScSSHClient, and a TScSSHShell component. The program has three functions a “connect” that issues a ScSSHShell->Connect, a command to send a ScSSHShell->WriteString(Message) message to run the job, and finally a ScSSHShell->Disconnect().
When you run the dialog box a second time and it fails the responses are as follows:
The “connect” triggers the shell AsyncReceive and we get the login message from the Linux machine.
The “WriteString” actually sends the message to the Linux machine and the job is created, however there is no AsyncReceive data received to show that the command was processed. (NonBlocking is true).
Basically we have been using this code under C++ Builder6 and now under RAD Studio C++ 2010 it works just once, so what new feature am I missing?
Regards Dave