- 2008/05/13 Tue
-
変な音どころか、靴底がもげた。かかと部分が。めりめりーと。
とりあえずアロンアルファ。ゼリー状。 続・デスクトップヒープメモ:http://support.microsoft.com/kb/826518/jaTo troubleshoot this problem, use the Gdiobj.exe tool to monitor the Brush column for PID 0. PID 0 represents GDI objects that are not private. If the Brush column continuously increases but does not decrease, you may be experiencing the leak that is described in this article. In this case, you can see the leak when you start and stop Microsoft Word; the Brush column increases by 2, but when you exit the program, it does not decrease.
To download the Gdiobj.exe tool, visit the following Feng Yuan Web site:
http://www.fengyuan.com/download.html (http://www.fengyuan.com/download.html)で確認してみたところ、main() しかなくても DC 2つと Bitmap 1つと Brush 1つを消費するという結果に。何に使っているのさ。あと、非対話型のデスクトップヒープは512KBもしくは768KBと小さいので、対話型に逃がしてみるテスト。CreateProcess 関数
http://msdn.microsoft.com/ja-jp/library/cc429066.aspxlpStartupInfo
新しいプロセスのメインウィンドウの表示方法を保持している、1 個の 構造体へのポインタを指定します。のSTARTUPINFO Structure (Windows)
http://msdn.microsoft.com/en-us/library/ms686331.aspxlpDesktop
The name of the desktop, or the name of both the desktop and window station for this process. A backslash in the string indicates that the string includes both the desktop and window station names. For more information, see Thread Connection to a Desktop.を WinSta0\Default とかに。