msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Threads

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Lou



Joined: 04 Oct 2007
Posts: 149

PostPosted: Fri Sep 19, 2003 8:32 pm    Post subject: Threads Reply with quote

I am trying to use an ocx created by programmer friend, This ocx has threads
in it.
It crashes VB6 IDE.
Question, Is it safe to use multi threaded ocs's?

-Lou

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Tony Proctor



Joined: 04 Oct 2007
Posts: 101

PostPosted: Sat Sep 20, 2003 3:49 am    Post subject: Re: Threads Reply with quote

I guess this control must, therefore, be written in C++, or at least
something other than VB6

A multi-threaded control is OK as long as the additional threads are "well
behaved". If they try to call-back any VB code, or access any VB objects,
then it will crash.

Note that there was a similar question to yours posted in
microsoft.public.vb.general.discussion on 12-sep-2003, entitled "Calling
back VB code from a multithreaded component". Have you read that one? It
might give you some more information.

Tony Proctor

"Lou" wrote in message
news:#DSYl0ufDHA.3248@tk2msftngp13.phx.gbl...
> I am trying to use an ocx created by programmer friend, This ocx has
threads
> in it.
> It crashes VB6 IDE.
> Question, Is it safe to use multi threaded ocs's?
>
> -Lou
>
>

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group