12-12-2005 05:33 AM
12-12-2005 06:07 AM
12-12-2005 09:51 AM
12-12-2005 05:29 PM
A good way to handle this (I believe) is to create a dedicated thread pool having only one thread, and use CmtScheduleThreadPoolFunction() from the acquisition callback to perform the analysis in this single thread. The scheduled tasks will then be queued if necessary, and handled in the correct sequence.
Alternatively, you could call ProcessSystemEvents() in a loop and use PostDeferredCallToThread().
12-12-2005 06:04 PM