使用GDI+中Image时返回OutOfMemory解决办法

使用GDI+中Image时返回OutOfMemory
谁遇到这个问题,使用GDI+中Image时返回OutOfMemory:
代码大概是这样:
Image * pImage=new Image(L".\\res\\common.png");
用pImage->GetLastStatus();返回的是OutOfMemory;
在MSDN上说
Remarks

If you construct a GDI+ object and then immediately call the GetLastStatus method of that object, you can determine whether the constructor succeeded or failed. In such cases, GetLastStatus might return OutOfMemory even though there was plenty of memory available to create the object. Several GDI+ constructors set the status to OutOfMemory when they fail regardless of the reason for failure.

但MSDN好像没说怎么解决,谁遇到过的,给小弟说一下,

------解决方案--------------------
任意的png都是一样吗
------解决方案--------------------
改成绝对路径试试
文件可能不是图片格式或设备不支持的图片格式