Re: Is it safe to call disconnect? - WeOnlyDo Discussion board

Re: Is it safe to call disconnect? (General questions)

by Tushar, Wednesday, August 31, 2005, 11:30 (7023 days ago) @ wodSupport

Hi,
Thanks for the reply. But I have a common suitation here. A user issues a connect command to the server, a dialog is shown to the user displaying the status of the connection, also provided is a Cancel button so that the user can break the current operation.

Now hoping I am right once a Connect command is issued the call will not be returned till a connection is established or a timeout occurs or some other error occurs. In such a case the call to Disconnect has to come from a different thread (Am I wrong here?)

Now in my application when a Disconnect is called the application breaks in a debugger indicating invalid RtlHeapAddress (The call coming from wodSSH.dll, DllUnRegisterServer method)

I am using the component in Blocking mode(i.e. Blocking=TRUE) and my TimeOut property is set to 0 as I do not want to disconnect automatically.

Please let me know what can I do here?
Thanks.


Complete thread: