- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Hello there
when I close my application the inspector throws me a kernel resource leak message pointing to the main window handle.
The summary screen shows two times the CreateWindow line.
The application has been cosed correctly with a DestroyWindow.
How can I get rid of that message??
kind regards
Peter
コピーされたリンク
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
>>How can I get rid of that message??
Before doing memory error analysis, in "Configure Analysis Type" windows, uncheck "Detect resource leaks" option. That will be fine.
If GDI resource used in your program was not grown quickly, it is not the critical issue; If it happened in 3rd-party library, you have no idea to deal with; If your program runs shortly, when your process exits, MS will release all occupied resource. They are all I assumed:-)
In general speaking, as Sergey commented that you need to find why via call stack info
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
Thanks for your help
I have found embedded fonts as the cause of the message - they were not released on program exit.
kind regards
Peter
- 新着としてマーク
- ブックマーク
- 購読
- ミュート
- RSS フィードを購読する
- ハイライト
- 印刷
- 不適切なコンテンツを報告
As Sergey pointed it out you should have been checked recursively all handles to window and also other GUI elements which have parent-child relationship with the top container which is window.
