Hello,

I has a problem with CreateCompatibleBitmap.

the usage in short:
------------
CBitmap bm;
CClientDC dc(NULL);
bm.CreateCompatibleBitmap(&dc,4096,4096);
-----------

If I understand it right, it needs 4096*4096*3= approx. 50MB of video memory.
Is this correct?

For my current project it is used once in the app. I has to restart the app many times. No problem half of the day.
But then I get the error 8: "insufficient memory". It can only resolved if I restart the PC.

Is the problem in my app?
Does win XP grabs memory and do not release it?
Is it really the video memory?
Can I check the free video memory?

Thx for any helps!

Ralf