Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5417

Ini_GetStringIntoBuffer generates "General Protection" Fault

$
0
0

During a subsequent call to Ini_GetStringIntoBuffer, I get a "General Protection" fault.

 

Ini files are opened and closed previous to this call. The current file has already been opened and several properties have already been successfully read and stored. The fault is ocurring when the "UnescapeText" function is called. The destination pointer is in invalid memory and crashes when it is incremented. The pointer is valid when entering the function however. See below:

 

Ini_GetPointerToString.jpg

 

Here you can see the valid pointer for the destination. However after stepping into the Unescape function, it changes.

 

UnescapeText.jpg

 

What the heck is going on here?


Viewing all articles
Browse latest Browse all 5417

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>