Warning: file_get_contents() [function.file-get-contents]: SSL: 远程主机强迫关闭了一个现有的连接。 in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884

Warning: file_get_contents(https://whois.pconline.com.cn/jsLabel.jsp?ip=127.0.0.1) [function.file-get-contents]: failed to open stream: HTTP request failed! in D:\wwwroot\huidong\wwwroot\function.inc.php on line 884
回收 GDI 内存乃是防止内存泄漏的重要一步! - huidong

huidong

首页 | 会员登录 | 关于争取 2022 寒假做出汇东网 Ver3.0.0 !
搜索文章


今天晚上调试把我累死了,确定了是内存泄漏的问题,但就是找不到在哪泄漏的。历经千辛万苦,终于发现内存泄漏在了一个穷乡僻壤:绘图缓冲的输出函数。

内存泄漏是因为 GetDC 之后没有用 ReleaseDC,把我整了一个晚上。GDI 函数太不起眼了,又没有像 new 这样的关键词容易好找,所以每次调用 GDI 务必要审查是否释放内存,要紧得很!



返回首页


Copyright (C) 2018-2024 huidong