02-09-2015 02:52 PM
I have been trying to track down a few what seem like phantom Fatal Run Time Errors on my program closes.
I am running LabWindows/CVI 2010 Full 10.0.1 (419)
I originally posted here -> http://forums.ni.com/t5/LabWindows-CVI/EasyTab-ConvertFromCanvas-memory-leak/m-p/3084769#M69465
As I thought this was related to tabs, where my resource tracker shows 'unclosed' resources.
Now I am opening a different program and have found that even though I put my return 0; at the top of my main loop, I still get a fatal run time error.
The error is exactly:
FATAL RUN-TIMe ERROR
Unknown source position, thread id 0x00001BB4
The program has caused a 'Unknown' fault at 0x748A4F11
This occurs every time I run my program in the CVI IDE.
There are no allocated resources in my resources window.
Searching for either address in my map file brings no results.
Thanks,
Nick
02-18-2015 01:54 PM
Hi ngay528,
I have attached a link below to one of our discussion forums that walks through using the Resource Tracking feature of LabWindows/CVI. Again, sometimes this particular error is caused by leaving resources open at the end of an application, so this feature can help us identify those resources if that is the case. Please follow the steps listed in the solution of the thread (message number 4, marked in green).
FATAL RUN-TIME ERROR: Unknown source position, thread id 0x00000EB4: The program has caused a 'General Protection' fault at 0x00459B9D:
http://forums.ni.com/t5/LabWindows-CVI/FATAL-RUN-TIME-ERROR-Unknown-source-position-thread-id/m-p/16...
02-18-2015 03:13 PM
Thomas,
I have already tried that, and actually, that is what this issue seems to be around. Please re-read my statements carefully along with my comments in the thread I linked.
In short, if I do ABSOLUTELY NO CALLS in my main loop, but just place a return 0; at the top, I still get an error. Breaking on resource de-allocation does break for all items, however i still get an error.
02-19-2015 08:38 AM
ngay528,
What does your application perform when you get the error? I suspect that your application performs something related to threading. Can you please provide exact information about your code that reproduces this problem? You could also upload a minimal version of your application source code, that reproduces the problem.
02-19-2015 08:55 AM
Thomas,
Other than my basic c and empty h file, what else do you need to post?
For what its worth, here is my entire C file, in which I still get an error!
-------------------
//#include <cvirte.h>
//#include "Live CNo GPS.h"
/***************** MAIN ***************************************/
int main (int argc, char *argv[])
{
return 0;
}
-------------------
I don't know if its something with CVI 2010 or what. I am literally including nothing and instantiating nothing. My UIR is completely blank.
I have verified by running Built In Examples that I get the same error. For example, i just ran the "Rotated Text" sample project and got the same issue.
01-12-2016 10:11 AM
Im getting the same kind of issue.
Did some one have got solution to this issue or it's still open. 🙂
Thanks,
Kiran
01-12-2016 10:18 AM
Still haven't heard anything, and haven't figured it out.
Pretty frustrating. It has to be something in the drivers or installation package. It is annoying because everytime I run the program out of the IDE, I have to click OK on fatal crash error box, then actually click Stop button to stop program.
01-12-2016 11:40 AM
Ok. I am also a little worried on this issue.
Do n't know whethere the issue related to Windows OS hot fix or not.
The other interesting thing is when i ran the application alone, the crash is not happening.
Right now, I am trying to use extended debugging in labwindows to find out the real crash.
Thanks,
Kira
01-13-2016 04:34 PM - edited 01-13-2016 04:36 PM
Hi ngay528,
You mentioned that you are using LabWindows/CVI 2010--how long have you been seeing this crash occur? Has it only occurred in CVI 2010, and if so, did it start happening immediately after installation?
01-13-2016 09:09 PM
It has not occurred the entire time I have CVI 2010 nor has it occurred the entire time on this same computer. I can't remember, but it either occurred after major Windows 7 updates, and/or after an update to CVI2010 awhile ago.
Its just odd that it only occurs when closing a program in the IDE. Not when running it externally on its own. I would have thought it would be easier for NI to track it down, but not sure. I can have a program just call an empty main() function and return and the error would still occur, so its clear something with the IDE and the program.