Re: SSHServer events in C# console application - WeOnlyDo Discussion board

Re: SSHServer events in C# console application (General questions)

by wodSupport, Wednesday, February 02, 2005, 13:28 (7031 days ago) @ gumma

Gumma,

I doubt it will work in console app at all. Problem is that component works in background. Console apps have main() function that is started and ends - which ends your app too. So, wodSSHServer is also destroyed.

On the other hand, if you try to call Thread.Sleep, you will also block wodSSHServer since it lives in the same thread.

You need to have Windows app that has message pump. You can make it not to show windows, but window must exist so your app runs idle for unlimited amount of time - at which time wodSSHServer also works.

Hope it helps.
Kreso


Complete thread: