Re: SSHServer events in C# console application (General questions)
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:
- SSHServer events in C# console application - gumma, 2005-02-02, 11:35
- Re: SSHServer events in C# console application - wodSupport, 2005-02-02, 13:28
- Re: SSHServer events in C# console application - gumma, 2005-02-02, 15:04
- Re: SSHServer events in C# console application - wodSupport, 2005-02-02, 13:28