03-06-2010 05:32 AM
Solved! Go to Solution.
03-06-2010 07:46 AM
Hi Ramesh,
There might be 2 reasons for that:
1) You might have set a variable to be watched and code to break at the point its value changes.
Make sure there are no variables in the watch window.
Just go to "Window > Watch" from the CVI IDE menu and delete any variables listed using the Delete button on your keyboard.
2) "Library errors" is enabled in the menu "Run > Break on".
This only happens if you are in debug mode and at the point of break a popup appears showing details about the error encountered.
Which one is the case for you?
03-07-2010 10:53 PM
Hi Eren,
I did not use watch window option. Also I am not getting any error message when it breaks at that point. Please inform me if there is anything else that causes it.
Thanks,
Ramesh
03-08-2010 12:21 AM - edited 03-08-2010 12:26 AM
Well, that was all I could guess.
I do not know any other case that may result in such behaviour.
NI's professionals may comment better at this point, since this looks like an abnormal situation.
Did you look for anything unusual in the variable values at the moment the code breaks?
Is it always the same point in the code that causes the break?
03-09-2010 07:38 AM
I can confirm this happening sometimes. It just breaks as if a breakpoint was hit (no runtime error or anything). I was too busy to investigate any further, however, as it was just a nuisance.
Regards, Marcel
03-10-2010 04:59 AM
03-10-2010 06:13 AM
Ramesh, what do you mean by "...asnchronous timers that I used in Windows..."?
Even if you have timers in your code it should not cause CVI to break if there is not a breakpoint (either normal or watch window triggered) in your timer callback.
03-10-2010 06:22 AM
03-10-2010 07:58 AM
What is the refresh rate for your graphs? or what is the period of the timer control?
You may end up using the async timers again, if you need a fast and more-or-less stable refresh rate.
Beware that, async timer callbacks run on a separate thread.
Therefore they are effected less from the other Windows background operations compared to timer controls.
03-10-2010 09:22 AM
I am working at 100ms in which I will get from a server using TCP/IP communication and updating graph. I am using semaphore and waitforSingleobject with infinite time and releasing the semaphore after getting the data and updating graph. If I do so, I found that my application is hanging sometimes and breaking at a particular point in the timer.