microkarl Posted June 15, 2005 Posted June 15, 2005 Hi all, In creating multithreading in the application, a lot of people would do somthing like this: Dim Thread1 as New System.Threading.Thread(Address of counter.Count) where counter.Count is a Timer, and what the code does is assign a timer in the entry point of a new thread and when the timer ticks, it goes to a place (usually a queue) to get the object and process it (Maybe I am wrong, let me know). Now, my question is, instead of assigning a timer (or some function/subroutine that does not have a parameter) to the thread, can I assign a subroutine that has a parameter to a timer. Thanks Quote Donald DUCK : YOU ARE FIRED!!!
Administrators PlausiblyDamp Posted June 15, 2005 Administrators Posted June 15, 2005 Although you can't assign a method that requires a parameter to a thread you can create an object that accepts either parameters for it's constructor or exposes them as properties and pass a method of the class to the thread constructor. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
microkarl Posted June 28, 2005 Author Posted June 28, 2005 Is there any example (even in brief) that I can reference to?? Thanks for your help Quote Donald DUCK : YOU ARE FIRED!!!
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.