04-08-2008 11:33 AM
04-08-2008 11:39 AM
04-08-2008 11:52 AM - edited 04-08-2008 11:54 AM
You could use a Producer/Consumer with events design structure. Basically the event structures purpose is to put elements into a queue, then an independant loop dequeue the elements and performs the needed tasks. One event should be initialize, and in your case simply enqueue all other elements once.
P.S. There is a template for this (I modified it to use an enum instead of a string), Click New... -> From Template -> Producer/Consumer (Events)
to help you get started.
04-08-2008 06:50 PM
04-09-2008 07:23 AM