わいえむねっと

Contents
Categories
Calendar
2008/05
1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 27 28 29 30 31
Monthly Archives
~2000/01
Recent Entries
RSS1.0
Templates
Information
Processed: 0.076 sec
Chashed: -
2008/05/13 Tue
変な音どころか、靴底がもげた。かかと部分が。めりめりーと。
とりあえずアロンアルファ。ゼリー状。 ・デスクトップヒープメモ:
http://support.mi​crosoft.co​m/kb/826518/ja
To 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.micro​soft.com/ja-jp/library/cc429066.a​spx
lpStartupInfo
新しいプロセスのメインウィンドウの表示方法を保持している、1 個の 構造体へのポインタを指定します。


STARTUPINFO Structure (Windows)
http://msdn.micro​soft.com/en-us/library/ms686331.a​spx
lpDesktop
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 とかに。