arthurprs are you using Windows 7 too like de_jean_7777. If yes, then i think win 7 is incompatible with directdraw. Guys can you test some directdraw applications on win 7 ? If they works. then the problem is in my program. If they don't work, then the problem is, as i said, the incompatibilitu of win7 to direct draw (then will i begin to use GDI, or OPENGL as draw-surface-flippers) . i think... for win7 is there new api for 2d draw.. i think direct2d or so. I am not sure. Check if win7 have got some compatibility options like WinXP for win95, win98... Run my program in some compatibility mode. Pls guys make this test's and give me the results. Thnx in forward. Oh... i almost forgot.. I use WinXP.

Closing the draw-window will result lost of the direct draw surface, so my program can't write to this surface. This is the reason why the program crash. And the long start is caused with the bad optimized mip-map creator