Flash Games
 FAQ   Search   Memberlist   Usergroups   Register  Profile   Log in to check your private messages   Log in 


How to create a new thread for OCX ?



 

Post new topic   Reply to topic  
   DEVPPL Forum Index -> Visual Basic Forum
View previous topic :: View next topic  
Author Message
nprajapati



Joined: 24 Jun 2008
Posts: 1

PostPosted: Tue Jun 24, 2008 4:34 am    Post subject: How to create a new thread for OCX ? Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    DEVPPL Forum Index -> Visual Basic Forum All times are GMT + 1 Hour
Page 1 of 1

 
 
Welcome to DEVPPL.com
You are not logged in, which means that you can't post in the forums.
Click here to Register

If you are a current member here on DEVPPL, please login below:

User: Pass:
Log me on automatically each visit:

 


Powered by phpBB © 2001, 2005 phpBB Group - Modified by DEVPPL

Flash Games - Sitemap