VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Easy Generic Multithreading with MThreadVB (Internal Pointer bug fixed)

by Srideep Prasad (8 Submissions)
Category: VB function enhancement
Compatability: Visual Basic 3.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (7 Votes)

MThreadVB is a generic multithreader, allowing you to multithread any function or sub. To find out more, read on !

Rate Easy Generic Multithreading with MThreadVB (Internal Pointer bug fixed)







Important Notice


MThreadVB - The easy way to multithread !


MThreadVB is a generic multithreader for VB - to which I have been making a
few changes here and there.... But it seems that in one of my updates I had
inadvertently referenced an independent DLL called VBConsole.Dll and had
forgotten to remove it.  (This was done for testing and experimentation
purposes)...I had also forgotten to remove an invalid object variable
reference.... As a result, the update may not have worked.... I apologize for
any inconvenience and those of you who had downloaded the buggy code can
download the updated version now !  Plus this new update has quite a few
more features (and took quite some time to add too !)


Fixes / Enhancements


1>The VBConsole.dll reference problem has been fixed....


2>Now defines a new property ObjectInThreadContext, that returns the
reference to the parent object containing the multithreaded sub in context to
the new thread


3>With this, you can now implement File I/O and show forms (though I do
not very much recommend showing forms from multithreaded procedures), from multithreaded subs
(The Form show bug was reported by Robin Lobel - Special thanks to him for doing
so !)


4>Some users it seems are having problems showing forms within
multithreaded procedures. Therefore I have updated the code to actually
demonstrate how to actually show forms from multithreaded procedures....


5>A serious pointer dereferencing bug was causing problems when the
multithreaded sub had a relatively big name. This has now been fixed !


Here is the link to the bug fixed code -


http://planet-source-code.com/vb/default.asp?lngCId=26900&lngWId=1 


Do not hesitate to mail be if you notice some bug or problem....


Please remember that many of the enhancements were made possible due to
feedback from people at PSC.... Please continue to give your feedback regarding
any problems in the functioning of MThreadVB


Note: If you consider this code worth your vote, please vote for the main
page by clicking the link above... Or register it by clicking here
!




Download this snippet    Add to My Saved Code

Easy Generic Multithreading with MThreadVB (Internal Pointer bug fixed) Comments

No comments have been posted about Easy Generic Multithreading with MThreadVB (Internal Pointer bug fixed). Why not be the first to post a comment about Easy Generic Multithreading with MThreadVB (Internal Pointer bug fixed).

Post your comment

Subject:
Message:
0/1000 characters