01-17-2017 02:50 AM
Hello,
I'm runnig a multithread program, after 2 hours i have the famous error "Run Time error".
Is there any method to fix it?
Thanks a lot
01-17-2017 03:02 AM
Not with the limited informations you are supplying: every error message reports the source file and line/column where the error arises, together with some additional informations about the type of error found. Only with these infos together with the relevant code you can be able to understand what's happening and fix it.
01-18-2017 01:38 AM
Hello,
I attached the error msg.
After 2hours from running my program i have the error.
Please help me.
Thanks.
01-18-2017 02:21 AM
One possible way to address this situation is to enable the generation of the map file in Build >> Target settings... and see if the address listed in the error message pertains to some of the functions in your program. Knowing if the error is related to a specific function / action in your program can be of help, even if there is no general rules to debug this error.
GPF can be tricky to debug, here is a list of discussions that address similar situations:
Strategies for dealing with general protection faults from non-debuggable threads.
What causes an "Unknown source position error in CVI?
01-18-2017 02:39 AM
Hello Roberto,
I check the map file but i didn't find the address of this error.
Also, from yesterday i have a look to all CVI forum and subject about this error.
What about using "SetEnableResourceTracking (1);" it could help?
Any suggestion please?
Thanks a lot
01-18-2017 06:04 AM
The Resource Tracking is useful if you are running in the IDE: enabling it with the command you highlighted or setting the Debugging Level to Extended in Build Options dialog have the same effect to display informations in the Resource Tracking window. This resource can be usefult if you suppose the error may be due to e.g. unallocated system resources and similar scenarios.
Could you track down the error to some specific function or area in your program so that you can narrow down your checkings to it?
If you are running a compiled executable you could call CVIDynamicMemoryInfo to get some data on the allocated memory: if the problems is due to memroy leaks you should be able to detect it.