Click here to Skip to main content
15,892,059 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: ListCtrl SetItemText Pin
josda100026-May-10 2:32
josda100026-May-10 2:32 
QuestionRe: ListCtrl SetItemText Pin
David Crow26-May-10 3:06
David Crow26-May-10 3:06 
AnswerRe: ListCtrl SetItemText Pin
josda100026-May-10 3:08
josda100026-May-10 3:08 
GeneralRe: ListCtrl SetItemText Pin
David Crow25-May-10 7:35
David Crow25-May-10 7:35 
AnswerRe: ListCtrl SetItemText Pin
Fareed Rizkalla25-May-10 0:49
Fareed Rizkalla25-May-10 0:49 
AnswerRe: ListCtrl SetItemText Pin
Luka Frodnik27-May-10 3:41
Luka Frodnik27-May-10 3:41 
GeneralRe: ListCtrl SetItemText Pin
Sakhalean27-May-10 4:19
Sakhalean27-May-10 4:19 
QuestionEnumerating GDI Handles in (own) process. [modified] Pin
Iain Clarke, Warrior Programmer24-May-10 23:40
Iain Clarke, Warrior Programmer24-May-10 23:40 
Modification: I didn't mention that I'm working under W7!

Morning all!

I have a GDI leak in a program that I'm trying to track down.

I've found various programs (GDIView, MemoryValidator, DPus, Deleaker), and none of them do what I want (though they have been useful to narrow the issue down).

What I want to do, is to be able to get a list of all the GDI handles that exist in my process - then I can make a before / after comparison to see which ones should be around, and which not.

The nearest functions I can find are GetObject, and GetObjectType - but to use those I have to loop around 4 billion times, and I get a lot of false positives - not to mention, it takes a LONG time to do 4 billion calls in an out of kernel mode.

There's also GetGuiResources, but that just gives a total.

Where's my EnumGuiResourcesEx function!?

Any hints? I've had a look at DbgHelp.dll too, and it does not seem useful in this case.

Here's hoping y'all can say "Oh, just look at the frobble sdk - it's perfect!"

Iain.
I have now moved to Sweden for love (awwww).

modified on Tuesday, May 25, 2010 7:46 AM

AnswerRe: Enumerating GDI Handles in (own) process. Pin
CPallini25-May-10 1:43
mveCPallini25-May-10 1:43 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer25-May-10 1:47
Iain Clarke, Warrior Programmer25-May-10 1:47 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
Peter_in_278025-May-10 2:15
professionalPeter_in_278025-May-10 2:15 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer25-May-10 2:31
Iain Clarke, Warrior Programmer25-May-10 2:31 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
Aescleal25-May-10 3:09
Aescleal25-May-10 3:09 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer25-May-10 3:28
Iain Clarke, Warrior Programmer25-May-10 3:28 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
sashoalm25-May-10 6:14
sashoalm25-May-10 6:14 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer25-May-10 8:06
Iain Clarke, Warrior Programmer25-May-10 8:06 
AnswerRe: Enumerating GDI Handles in (own) process. Pin
Code-o-mat25-May-10 23:53
Code-o-mat25-May-10 23:53 
GeneralRe: Enumerating GDI Handles in (own) process. Pin
Iain Clarke, Warrior Programmer26-May-10 0:12
Iain Clarke, Warrior Programmer26-May-10 0:12 
QuestionButton+png+Resource Pin
john563224-May-10 23:18
john563224-May-10 23:18 
AnswerRe: Button+png+Resource Pin
Hristo-Bojilov24-May-10 23:49
Hristo-Bojilov24-May-10 23:49 
GeneralRe: Button+png+Resource Pin
john563225-May-10 0:17
john563225-May-10 0:17 
Questionstrcmp for Last five characters Pin
Anu_Bala24-May-10 20:46
Anu_Bala24-May-10 20:46 
AnswerRe: strcmp for Last five characters Pin
Sarath C24-May-10 21:11
Sarath C24-May-10 21:11 
AnswerRe: strcmp for Last five characters Pin
chandu00424-May-10 21:33
chandu00424-May-10 21:33 
AnswerRe: strcmp for Last five characters Pin
Richard MacCutchan24-May-10 21:33
mveRichard MacCutchan24-May-10 21:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.