|
-
Jun 16th, 2016, 04:30 PM
#6
Re: VB Multithread Library (Generic Multithreader)
 Originally Posted by DEXWERX
It's a very simple asyncronous framework.
Yes. Also, it's very useful for the multithreading newbies and professionals too because it doesn't require the big efforts for understanding. Everything is very simple - Create/Asynch/Synch. Of course there is some issues with parameters but at first time it doesn't matter.
 Originally Posted by DEXWERX
It's simple enough for someone to incorporate Trick's methods, as well as add more flexibility or complexity.
I would like to note the few details. The code should have the message loop in order to support the marshaling. For example if a project doesn't contain forms you have to loop message cycle (DoEvents, for example, but it loads a thread it's better use GetMessage/TranslateMessage/DispatchMessage functions). You should wait for the thread termination as well. Optionally, as an user of your library i would want to have the ability of passing a parameter to a thread.
 Originally Posted by DEXWERX
It would be nice for it to be single threaded for testing / IDE debugging, although again that can be added outside of the framework.
The Krool approach is quite stable in your example, but it'll crash anyway in IDE. All my methods doesn't work in IDE (except EXE multithreading that works in the main thread). I absolutely have no time to translate my examples to English and public the new projects. In short, that example uses the precompiled DLL and creates the object in the new thread. You have the ability to call a method synchronously and asynchronously and receive the event from this object.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|