My call to CmtDiscardThreadPool hangs. I read the following in the help.
"If your Thread Functions are not guaranteed to finish executing, you must make sure that no active threads exist in the pool before calling this function. Call CmtGetThreadPoolAttribute with the ATTR_TP_NUM_ACTIVE_THREADS attribute to determine the number of active threads in the pool. "
Can someone give me an example of how to make sure that there are no active threads in the pool? Once I determine that there are active threads in the pool, how can I stop them so I can make the CmtDiscardthreadPool call?
Thanks,
Donna