06-26-2014 04:10 AM
Dear all,
I have some troubles with LabWindows CVI. Sometimes (maybe 2 or 3 times by week) my application crash with General protection error in cvirte adress. This crash never happens in the same part of the code is always happens in random way. The problem is that in debug mode we don't have any information about where the problem occurs in cvirte. This bugs can happens with differents application from very simple application to very complex applications.
Do you have some ideas that how can I solve these problems?
Thanks
06-27-2014 02:44 AM
Hello, j.romero!
The background of the crash that you described is very vague. It would be very helpful if you would provide more insight information on this crash:
Regards!
- Johannes
06-27-2014 02:58 AM
Additionally, I suppose the exact version of the run-time engine in use can be useful (e.g. 13.0.1.201): it may be found in MAX if you have it installed or by viewing the properties of cvirte.dll (on my system it is installe in c:\windows\syswow64).
Knewing whether you are using other tools in your applications could be useful too (e.g. DAQmx).
06-27-2014 04:31 AM
Thanks for your reply,
Here below some additional informations:
CVI version: CVI 2013 SP1
cvirte dll: 13.0.1.201
About the context: Is an application that collect measurements from serial link from many instruments. This applcation communicate also with database for configuration and settings for each instrument. The software have many dynamic memory management and collect big amount of data. It use also multithreading, displaying functions.
Sorry for the source code is too big it's impossible to post it here.
Build otpions
Default calling convention _cdecl
Maximum stack size 1048576
Stack allocation 4096
Image base adress 0x00400000
Profiling Disabled.
The problem appears also in old version of CVI 2012 for example.
Thanks
06-27-2014 04:52 AM
Regards!
- Johannes
06-27-2014 05:27 AM
Ok,
I will collecte the names of functions the next time taht will appears.
Yes in debug options I have selected extended options, and no memory lacks appears.
BR
06-30-2014 02:30 AM
Hello again, j.romero!
I would like to ask you if you had any luck trying to narrow the issue down on some specific patterns or CVI Run-Time functions?
However, it would be very helpful if you would be able to send us your application, so that we can build and try to reproduce the issue on our side. Moreover, since your application is very large, you could strip down parts of the application, so that we are able to better isolate the problem.
You can upload the project files at the following FTP location: ftp://ftp.ni.com/incoming
Best regards!
- Johannes
11-24-2014 03:55 AM
Hello,
Sorry for my answer many weeks after the post. We investigate a little more with ni france and I activate ConfigCVILogging.exe tool. Now also I use LabWindows CVI 2013 SP2 but the problem remains and It happens 6 times in one week!! but never doing the same action (sometimes at the startup, sometimes many hours after the startup, sometimes clicking a button, etc..).
If we put the project in the incoming folder you will not be able to run the application because we use serial proprietary protocol to communicate with our devices.
So I send here all the information for 6 erros that we collect the last week.
Thanks for your comments or ideas.
J. ROMERO
01-16-2015 07:32 AM - edited 01-16-2015 07:37 AM
Hello J. Romero!
Thank you for the crash information you provided!
Hover you managed to collaborate with NI France more in order to determine the cause of this crash?
Unfortunately, the information you provided is still not sufficient for us to determine the exact cause and circumstance of this crash:
Best regards!
- Johannes
01-16-2015 07:57 AM
Dear Johannes,
Thanks for your reply. I put the application inf ftp incoming folder named "Tables". I also transfer all the print screens and files to NI france that transfer this to NI US.
Hope that will help to fix the problems.
Best regards
José