04-09-2009 02:10 PM - edited 04-09-2009 02:12 PM
Hey Nick,
Here is my first DeBug enabled CVI crash that I got a .dmp file... attached the .log and the .dmp in a zip and will try sending this to ya... if the server complains then I will attempt to ftp the file...
Regards,
ChipB
04-09-2009 02:23 PM
Hey Chip,
This is very strange. For some reason neither Visual Studio nor WinDbg can make use of that dump file. Are you using Windows XP? Can you post the dump for your next crash in case this was just a random data corruption?
Thanks,
NickB
National Instruments
04-09-2009 03:09 PM
Nick,
Windows XP and Ok... I am waiting for my next dump...![]()
ChipB
04-14-2009 11:45 AM
Nick
I have to create an account to ftp data... the requirements are a contact (you) and a IP address... so all I can do for now is attach the .zip files,
ChipB
04-15-2009 05:21 PM
Hey Chip,
Thanks for the latest information. Upon looking at the .dmp, we think the issue you are seeing may be an issue we have identified in CVI 9.0 and have fixed for the upcoming maintenance release. Do you have any particularly large strings that you are initializing to some small string in your code? eg:
If not, I think we may be able to speed things along a little bit if I can contact you offline. Do I have your permission to get your email address from the forum administrator?
Thanks!
NickB
National Instruments
04-16-2009 09:10 AM
Sure Nick,
you have my permission and can e-mail me directlly. The max character array is 100000.
04-16-2009 03:31 PM
Hey Chip,
That char array may just be large enough to create the crash. The only current workaround is to not initialize the string to some very small string. I will contact you with more information once I get your email address.
NickB
National Instruments
04-16-2009 04:00 PM
Just a small correction to my previous post. After talking with a colleague, It turns out that you should be able to initialize the string as follows:
Sorry for the inconvenience,
NickB
National Instruments
04-16-2009 04:21 PM
Hi Nick,
So the code init's the variables like this...
#define MAXCHARREAD 100000
...
short CVICALLBACK readsweepdata (...)
{
char dataread[MAXCHARREAD] = "";
...
}
so if that string is initialized as a empty string array, would this not crash?
ChipB
04-16-2009 04:32 PM
Chip -
That's correct. If the crash you are seeing is the same one as I suspect, initializing it as I mentioned directly above should keep the app from crashing. Let me know if that turns out to not be the case.
NickB
National Instruments