07-06-2006 04:12 PM
07-06-2006 04:14 PM
07-06-2006 04:20 PM
07-06-2006 04:57 PM
07-06-2006 05:29 PM
07-07-2006 10:57 AM
07-07-2006 02:54 PM
07-07-2006
04:33 PM
- last edited on
07-08-2025
02:58 PM
by
Content Cleaner
This is pretty tough to diagnose, and it's not really something I've heard of before. I can make some suggestions of things to try, just in hopes of better characterizing the problem. Is the problem reliably reproducable? From the pointer assignment confusion earlier, it sounds like it is not. You could try writing a very simple app that schedules a thread pool function, then see if you can reproduce the issue while debugging that. Also, you mentioned that when built as non-debug, the program works fine. What if you just run the debug executable without actually debugging it in CVI? Can you reproduce the problem if you have no breakpoints or watch variables? You might also want to try creating a new thread pool (CmtNewThreadPool) with various numbers of threads and running the thread function in one of that pool's threads. Have you confirmed in the Windows task manager that it is your app's process that is eating all the cpu time?
You can also try patching your version of CVI from 7.1 to 7.1.1. It is unlikely that this will solve your problem, but it can't hurt.
Good luck.
Mert A.
National Instruments
07-07-2006 05:18 PM
07-07-2006 06:44 PM