Thread API in VB using VC Debugger 
Author Message
 Thread API in VB using VC Debugger

    Hiya,

I've been told that you can infact use the Thread API in Visual Basic
to build a multithreaded application (since VB5 or 6 using sp3 or 4
dont remember exactlly), if you dont use the VB de{*filter*} to debug
your threading code, but instead use the DegugBreak API (not to
be called when in IDE) and use the VC De{*filter*} to do it instead.

The person I spoke with said that usingf the VC de{*filter*} to debug
mulithreaded vb applications using the thread api was quite simple,
you just had to make sure you checked the "Create symbolic
debug info" checkbox on the Compile tab in the Project Properties.

Can anyone comment on this? I havnt had time to test it out my self,
but if this infact is a possibility (even if it woukd have ot be VB6 + SP5,
I dont care) then I would be very good.

 Bye!



Mon, 24 Nov 2003 23:26:13 GMT  
 Thread API in VB using VC Debugger
That person is 100% wrong.

The central blocking issue with using CreateThread relates to VB's
dependence on thread local storage (TLS) and the fact that a new thread you
create via this technique will not have initialized its TLS.

--
MichKa

the only book on internationalization in VB at
http://www.*-*-*.com/


Quote:
>     Hiya,

> I've been told that you can infact use the Thread API in Visual Basic
> to build a multithreaded application (since VB5 or 6 using sp3 or 4
> dont remember exactlly), if you dont use the VB de{*filter*} to debug
> your threading code, but instead use the DegugBreak API (not to
> be called when in IDE) and use the VC De{*filter*} to do it instead.

> The person I spoke with said that usingf the VC de{*filter*} to debug
> mulithreaded vb applications using the thread api was quite simple,
> you just had to make sure you checked the "Create symbolic
> debug info" checkbox on the Compile tab in the Project Properties.

> Can anyone comment on this? I havnt had time to test it out my self,
> but if this infact is a possibility (even if it woukd have ot be VB6 +
SP5,
> I dont care) then I would be very good.

>  Bye!



Tue, 25 Nov 2003 01:19:46 GMT  
 Thread API in VB using VC Debugger
Thats what I thought..sounded way to good to be true =)



Quote:
> That person is 100% wrong.

> The central blocking issue with using CreateThread relates to VB's
> dependence on thread local storage (TLS) and the fact that a new thread
you
> create via this technique will not have initialized its TLS.

> --
> MichKa

> the only book on internationalization in VB at
> http://www.*-*-*.com/



> >     Hiya,

> > I've been told that you can infact use the Thread API in Visual Basic
> > to build a multithreaded application (since VB5 or 6 using sp3 or 4
> > dont remember exactlly), if you dont use the VB de{*filter*} to debug
> > your threading code, but instead use the DegugBreak API (not to
> > be called when in IDE) and use the VC De{*filter*} to do it instead.

> > The person I spoke with said that usingf the VC de{*filter*} to debug
> > mulithreaded vb applications using the thread api was quite simple,
> > you just had to make sure you checked the "Create symbolic
> > debug info" checkbox on the Compile tab in the Project Properties.

> > Can anyone comment on this? I havnt had time to test it out my self,
> > but if this infact is a possibility (even if it woukd have ot be VB6 +
> SP5,
> > I dont care) then I would be very good.

> >  Bye!



Tue, 25 Nov 2003 06:40:27 GMT  
 Thread API in VB using VC Debugger
The only true thing is that you can debug VB this way with a debugbreak
statement and VC de{*filter*} but you cannot fool VB threads as Michka already
said...

--
Egbert Nierop

Session management for webfarms:
http://www.*-*-*.com/

Quote:
>     Hiya,



Mon, 01 Dec 2003 04:27:03 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. Thread API in VB using VC Debugger

2. Problem using Crystal report ActiveX installed with VB and used in VC.

3. VC-COM from VB/VC/Script

4. Declaring a VC API in VB--handling UDTs

5. Using VB .Net and VC at the same time in .Net

6. Using a VB From in a VC Container.

7. Using the vb component in vc++

8. ? regarding passing data from VC to VB using ActiveX control

9. Using VB DLLs OCXs with VC

10. Edit VB dialogs using VC

11. EASY Way to Pass SAFEARRAY from VC to VB using COM

12. VC -> VB .DLL using safearrays

 

 
Powered by phpBB® Forum Software