LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

General Protection fault during run release exe

A Fatal Run Time Error (Unknown source position) occur during run exe. If i run debug exe no Error occur.
i tick all options in the Compiler Warning and Errors Menu.
i work with the RS232- Interface and the UIR- Library. I define in the Menu Text Box Option a Max Entry Length 15000 and Extra Lines 1500.
0 Kudos
Message 1 of 5
(3,559 Views)
A classic reason for this is an unitialised variable. Are you using CVI 6.0? as this version seems to have pretty good warnings for this now.
If its not an unitialised variable, then the next most likely thing is an unitialised/unterminated string. (In debug mode the strings seem to get filled with 0's so they are effectively automatically terminated, but in release mode the optimisations mean that the strings are full of garbage and lack the terminating chars).

If the problem isn't obvious it might be worth running a tool like lint over the source.

Paul Rocca
Message 2 of 5
(3,559 Views)
Thank you Paul Rocca for response of 11/12/2001. I use CVI 6.0. The problem isn't obvious. My colleague have the software PC- lint 7.5 but without the compiler option file *.lnt. Do you now these options?
0 Kudos
Message 3 of 5
(3,559 Views)
Here are the lint files we used for one of our projects, I think cvi.lnt is actually called from the lin.bat (u might need to edit your lin.bat) which runs the lint program and sw02196.lnt is the file which specifies the files to lint and the options to specify. This file is actually one from one of our projects so you will have to change all the filenames and any paths to actually match up with your project.
Good luck
Paul
Download All
0 Kudos
Message 4 of 5
(3,559 Views)
Thank you Paul Rocca for response of 11/13/2001. It seams you are right with the unterminated string. In some case my Instrumentdriver get back a unterminated string. But it's my fault – i developed this driver (without problems in the past).
0 Kudos
Message 5 of 5
(3,559 Views)