07-25-2011 01:56 PM
I'm running LabWindows/CVI 9.0 and I'm having a really weird problem. I have not set a breakpoint, but every time I call a certain function (nc_open, opens a netCDF file), the execution breaks. It breaks several times, but never displays an error. I'm assuming that there's some kind of error in the library that I'm calling, since it only everhappens if I give it a valid netCDF file, but I'm not really sure where to go from here in debugging the code - is there a way to get the error from this, if there is one?
07-26-2011 12:24 AM
Can you look at the Watch window?
Maybe you have added the file handle variable to the Watch window and configured it to break when its value changes.
If you have the file handle in Watch window, delete it and re-try.
Hope this helps,
07-26-2011 06:32 AM
Or this could be an exception.
If Run > Break on > First Chance Exceptions is checked try what happens if you turn it off.
07-26-2011 10:41 AM
I turned off everything under "Break On" and there was no change in the behavior. I did manage to fix it, but only by solving the underlying error somehow. My best guess is that when I created and saved a custom variable type in the netCDF file I did it wrong somehow and created files that were mangled somehow. Other netcdf-4 features work, so I think it was probably my error. I guess I don't mind that it got fixed, but it's still a bit disturbing that it was breaking on errors and not reporting them to me somehow.