The context:
I have built 2 applications using Labwindow/CVI in 2 Visual C++ 6.0 projects.
The first program is in charge of acquiring an analog signal and of putting this acquired signal in a bloc of shared memory.
The second program reads the shared memory and displays it in its interface.
The problem:
The problem is that this 2 programs freeze after a random couple of minutes. Sometime after 2 minutes, sometime after 4 hours, sometime only one application freezes, sometime the 2 freeze.
Each time, CPU usage raises to 100%. If I break the program (in debug mode), I see that it is the main thread (in RunUserInterface()) which is the crazy one.
The infos:
- I use several threads that are not created using a Labwindow/CVI function call (like all multithread function calls).
- In these threads, I call functions to set display infos (SetCtrlAttribute and SetCtrlValue).
- I use a timer to read IO (sometime it takes a long time).
- I have not tested the release mode.
The question:
Do you know an issue that explain why RunUSerInterface becomes crazy?