Click to See Complete Forum and Search --> : OutOfMemory when Creating Image Object


nikhil.kn
June 19th, 2007, 06:01 AM
Hi,
I am getting OutOfMemory Error when i am trying to load an image as follows ...

Image *image = new Image(L"birdy.bmp");

Status st = image->GetLastStatus();

I am working with VC8.0, on XP. I have more than 40GB of memory and i have give my paging for 4025 MB.

Do let me know if there are any threads similar to this problem.

Regards,
Nikhil K N

MrViggy
June 20th, 2007, 04:02 PM
I haven't seen any threads like this. However, I hope that:
my paging for 4025 MB is a typo, because '4025MB' is only about 4GB (40GB RAM to 4GB paging is not really good). :)

Viggy

nikhil.kn
June 21st, 2007, 06:23 AM
Thanks for the reply!! .. i got to know the exact problem, somehow the image object needs specific path like

Image image = new Image(L"c:\\birdy.bmp");

This solved my OutofMemory problem.

Thanks for the Support,

Cheers,
Nikhil