Threads (wodSSH / wodSSH.NET)
I am using VB6 and trying to get threading to work correctly. I am connecting to an oracle database using sshtunnel to port forward 1521. The connection is not firing any sshtunnel events. Any comments?
Re: Threads
Larry,
VB6 isn't very happy with the threads at all. If you set Threads property to True, it is very likely that VB6 will crash when it receives event from another thread.
You can try to use wodTunnel.EXE ActiveX EXE instead. It runs at out-proc component, and it may work the way you need.
Or, if you need to use threads, I suggest you put your Oracle database calls to new thread. This isn't easy at all! You would have to use CreateThread API call and give callback to your VB function. I've seen implementations that worked nicely. Search google for VB and CreateThread.
Hope it helps.