11-07-2014 11:32 AM
The error it’s appearing from time to time and is embarrassing when you get it after 3 days of running.
11-07-2014 04:29 PM
It looks like it could be a memory access problem. If your program runs for 3 days, is it possible that you are simply "running out of memory" because you are, for example, "growing" arrays (or other structures) and they just consume all of your memory? This can also happen if you get into an infinite recursion loop.
Judging by your Front Panel, I'm guessing this is a pretty complicated program. You might consider seeing if you can get a run-time estimate of the memory your program is using, and write this periodically to a log file (open the file, go to the end, write, and close it -- this way, when everything crashes, your file is still intact and you can see what was happening just before it failed).
Bob Schor
11-07-2014 04:48 PM - edited 11-07-2014 04:52 PM
To help determine the cause of this error in your application, could you describe in general what your application is doing? Are you using any toolkits, hardware (DAQ, FPGA, cameras, etc.), external code (e.g. DLLs, ActiveX), etc? Is there a certain scenario when the crash is likely to happen? Are you having any memory usage issues, like an array getting bigger and bigger? It seems like it could be an memory issue since it runs fine for several days. You could use the Windows Task Manager to check out memory usage or the Windows Performance Monitor. The NI LabVIEW Desktop Execution Trace Toolkit is also available for tracking memory leaks and reference leaks. Or you could consider the file logging suggestion of the above post.
An Access Violation is a general Windows exception, so there can be a wide variety of root causes. There are other LabVIEW threads discussing some causes of this exception. This forum post is particularly helpful, as they list several scenarios and potential fixes:
There's another post about this error when using an FPGA.
As you can see there are a wide variety of causes, so more information about your application and the nature of the crash, including memory usage around the time of the crash, would be useful.
11-10-2014 10:10 AM
Hello,
Thank you for your input. I’ll try to evaluate the memory allocation during the running process!
Stefan Paunescu