thx, but U write there bout no creating that object in on draw method. What about on paint? I'm creating 24*60 rectangles, each with other brush, so I do
oldbrush=dc->SelectObje....
for(i=0;i<24*60;i++)
brush.DeletObject();
brush.CreateBrush(...);
dc->DrawRect....
}
dc->selectObject(oldbrush);
still after drawin about 20*60 more rectangles in other method, the window gets crazy, all my_setted(formated) fonts get lost, all my colors, etc.
system works, about 140MB of memory is used(normally without this prog 120), but when I want to do printScreen to clipboard and save this pic, it gives me a big memorry error with bitmap saving. but there's still 100mb of memory free and I hope, that NT does use whole memory, not like in dos... ;-(