EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Inhibit of errors

Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.
#19000
Posted: 02/10/2012 18:59:58
by Kratos Claus (Basic support level)
Joined: 12/13/2011
Posts: 3

I wonder how I can do to inhibit the error messages generated by the component SSHBlackbox in the application using Delphi XE2?

example:

SSH connection failed due to error (error code is 114).

Inhibit this ShowMessage and display information in a memo.

Thank you
#19003
Posted: 02/11/2012 01:51:45
by Eugene Mayevski (EldoS Corp.)

Wrap calls with try/except?

Code
try
  Client.Open;
except
  on E: ESecureBlackboxError do
  begin
    LogMemo.Lines.Add(E.Message);
  end;
end;


Sincerely yours
Eugene Mayevski
#19004
Posted: 02/11/2012 01:52:54
by Eugene Mayevski (EldoS Corp.)

Note that some errors are reported via exceptions and some are reported via OnError event. Choice depends on type of error, additional parameters that need to be passed and the source of the error (for some errors throwing the exception won't let us perform proper cleanup of the component).


Sincerely yours
Eugene Mayevski
#19051
Posted: 02/14/2012 21:35:27
by Kratos Claus (Basic support level)
Joined: 12/13/2011
Posts: 3

Eugene, thanks for the info ... but the error persists. What can I do?

Output generated by the program:

http://s17.postimage.org/6ip6295hp/erro_try_except_saida.png
#19053
Posted: 02/15/2012 01:11:10
by Eugene Mayevski (EldoS Corp.)

If you check the docs, you will find that error 114 means "no authentication methods left". I.e. your authentication didn't work.

Please try connecting to your server using a sample project in <SecureBlackbox>\Samples\<Language>\SFTPBlackbox\Client\SimpleSFTP and see whether it connects fine. If no, please post its log here (there's no sensitive information shown in the log).


Sincerely yours
Eugene Mayevski
Also by EldoS: Rethync
The cross-platform framework that simplifies synchronizing data between mobile and desktop applications and servers and cloud storages

Reply

Statistics

Topic viewed 841 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!