I updated from an old library to the latest 4.14.6 (using DLL, not static).
Since a lot has changed, I switched to the new “Transcode” function.
Running the code in either Debug, Release, 32 or 64 Bit will always result in a crash.
It turns out it will crash while deconstructing CPVRTextureHeader.
I made an all new project and reduced it to a bare minimum:
using namespace pvrtexture;
int main[int argc, char *argv]
Debugging will hit a break point with:
HEAP[test.exe]: Invalid address specified to RtlValidateHeap( 00D20000, 00D35B58 )
~CPVRTMap -> Clear() -> ~CPVRTArray -> delete m_pArray
I am running Visual Studio Community 2015 on Windows 10 64 Bit.
I tried it with the last 14.0.23107.0 D14REL, and the new Update 1.