nprajapati
Joined: 24 Jun 2008 Posts: 1
|
Posted: Tue Jun 24, 2008 4:34 am Post subject: How to create a new thread for OCX ? |
|
|
Hi Experts,
I am writing a VB.NET 2.0 application. The main form has an OCX control which connects to a remote server and displays video. The OCX control is written by third party and I do not have its source code.
Problem:
When I start my application, the OCX control connects to remote server and display video without any problem. But when the remote server is not available, the OCX control continuosly tries to connect to it and hogs up the application. I can not do anything else in the main form and ultimately have to close it.
What I DID:
I created a new thread which creates OCX control object and adds to the main form. I used delegates for the same. But it seems that OCX always runs in main thread context which does not solve my problem.
Is there any way that OCX of main form run in a new separate thread context ?
Thanks,
Naresh |
|