使用CxImage类加载文件缓存显示图片问题,急
RT:
在加载是我使用了
DWORD dFileType = CxImage::GetTypeIdFromName(strType.c_str());//获取图片类型png等等
CxMemFile memFile(Buffer,lpNumberOfBytesRead);//通过缓存加载
以上都没有问题 但是走到下一步
CxImage cImage(&memFile,dFileType);
出现了
Debug Assertion Failed!
Program:e:\work\src\File
File:f:\dd\vctools\crt_bld\self_x86\crt\src\dbgheap.c
Line:1317
Expression:_CrtIsValidHeapPointer(pUserData)
For information on how your program can cause an assertion
failure,see the Visual C++ documentation on asserts.
(Press Retry to debug the application)
这个错误。纠结了好几天。奇怪的是有的图片没有出现这个问题,有的就出现了。郁闷
我测了下 好像就是png类型的图片才出现了这个问题