楼主可能没有遇到这方面的问题,记着当初开发一个图像编辑器的软件,会在使用的过程中出现内存不够的提示,而且也不是经常出现,要等程序用了一段时间才出现,查找了很久都没有找出问题,最后在任务管理器中发现GDI句柄有几万个,吓到了,最后才发现没有释放资源导致. [解决办法] 需要啊 An application should always replace a new object with the original, default object after it has finished drawing with the new object.
[解决办法] 必须的 [解决办法] 凡是改动的,一概要改回来。
[解决办法] 看DeleteObject的说明你就明白了
If the specified handle is not valid or is currently selected into a DC, the return value is zero.
Do not delete a drawing object (pen or brush) while it is still selected into a DC.