Connected Event not getting fired if the Blocking - WeOnlyDo Discussion board

Connected Event not getting fired if the Blocking (General questions)

by Tushar, Friday, October 07, 2005, 08:24 (6986 days ago)

Hi I am trying to connect to a remote machine in a non-blocking mode.
I have set the Blocking property to FALSE, set the other parameters and properties correctly and issue a connect commamd.

The call returns immediately as expected, however I wait for connected event to fire before I proceed, unfortunately the event is never fired and ultimately my connection request timed out.

I have implemented the Notification Interfaces instead of Event-Sink handling.

Any Idea what I might be doing wrong?
Thanks

Re: Connected Event not getting fired if the Block

by wodSupport, Friday, October 07, 2005, 08:47 (6986 days ago) @ Tushar

It's really hard to say. Perhaps component is destroyed before Connected event gets a chance to fire? Perhaps remote server doesn't respond, so Timeout would eventually occur?

Any chance you can zip and send your project to techsupport@weonlydo.com ? I'd like to see it and test it.

Re: Connected Event not getting fired if the Block

by Tushar, Monday, October 17, 2005, 12:02 (6976 days ago) @ wodSupport

Hi WodSSH just do not connect to the server if the BLOCKING property is set to FALSE.

If you want to test it out you can use the sample application provided with the installation.

Just set the BLOCKING property to FALSE and try to connect to any valid SSH server.

I was unable to connect each time I tried and when I changed the Blocking property to TRUE it connected immediately without other code changes, can you please confirm it.

Thanks,
Tushar


[:doh:]

Re: Connected Event not getting fired if the Block

by wodSupport, Monday, October 17, 2005, 13:29 (6976 days ago) @ Tushar

Tushar,

I tried with our sample where blocking isn't set, and it works correctly.

Which sample doesn't work for you? I tried with '3. terminal emulation' and '1. simple' VB component samples.

Perhaps in your code component is destroyed before it connects? Can you zip and send your project to techsupport@weonlydo.com ?