04-14-2014 11:59 AM
Hello,
while preparing a demo I came across the following behavior:
panel_handle = LoadPanel ( 0, PANEL, PANEL );
causes a 'General Protection' fault.
Of course, the second parameter is wrong as it should be a file name, but I would have assumed that CVI shouldn't crash but issue an error message instead... all it does is a warning.
Is this expected?
Solved! Go to Solution.
04-15-2014 02:05 AM
Hello Wolfgang,
The warning is expected. It's true that in LabWindows/CVI 2012 and earlier this was an error, the reason for which this warning is under Warning Level Common, enabled by default for new projects. Also, this warning gets enabled upon conversion of older projects.
Do you think it should permanently be an error?
Best regards,
= Nelu F. || National Instruments.
04-15-2014 03:12 AM
Well, personally I feel that everything that can cause a GPF should be an error (but I'm not an expert in such things...) and thus I did like the previous behavior better
04-15-2014 03:38 AM
Hello Wolfgang,
I think we could achieve the old behavior by turning warnings into errors. Basically, the users would toggle this option either per warning or per groups of warnings (levels).
A task to do so has been already created, id 381598. It should be implemented in a future version.
Best regards,
= Nelu F. || National Instruments.
04-15-2014 03:43 AM
Sounds good, thanks!