Click here to Skip to main content
15,921,643 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Weird Memory Issues Pin
cmk9-Aug-05 1:03
cmk9-Aug-05 1:03 
GeneralRe: Weird Memory Issues Pin
LighthouseJ9-Aug-05 5:06
LighthouseJ9-Aug-05 5:06 
Generalread and write the structure to file Pin
pnpfriend8-Aug-05 12:58
pnpfriend8-Aug-05 12:58 
GeneralRe: read and write the structure to file Pin
Tim Smith8-Aug-05 13:15
Tim Smith8-Aug-05 13:15 
GeneralRe: read and write the structure to file Pin
pnpfriend9-Aug-05 3:37
pnpfriend9-Aug-05 3:37 
GeneralGDI Object leak detection Pin
prcarp8-Aug-05 11:37
prcarp8-Aug-05 11:37 
GeneralRe: GDI Object leak detection Pin
Blake Miller8-Aug-05 12:02
Blake Miller8-Aug-05 12:02 
GeneralRe: GDI Object leak detection Pin
prcarp9-Aug-05 2:34
prcarp9-Aug-05 2:34 
I am using WindowsXP with latest patches, etc. The task manager GDI Object count increases when I open a particular dialog box, for example. This dialog box has many CStatic-based elements which I use for some icon displays (that change based on some user WM_ events). It also has CButton-based elements for some metal-looking buttons with regions and icons. I started commenting out different pieces, trying to isolate the issue. The icons change while the dialog is open and the GDI Object count increases. It stays at that level when the dialog is closed but goes up yet again when the dialog is re-opened. To complicate matters more, I use a CMemDC to draw on before BitBlt-ing onto the CDC provided in the OnDraw.

I wouldn't necessarily have an issue with this but if the program runs for hours, I get low system resource errors, the program fails to paint windows, and eventually locks up. It seems to happen more frequently when I am in front of customers. Smile | :) Task manager is the only way to kill it.

I will look into the article you mentioned. I also looked at different tools (Rational Purify, Numega, etc.) but they are expensive.... I may have no alternative.

Thanks!
GeneralRe: GDI Object leak detection Pin
cmk8-Aug-05 15:17
cmk8-Aug-05 15:17 
GeneralRe: GDI Object leak detection Pin
prcarp9-Aug-05 2:38
prcarp9-Aug-05 2:38 
GeneralRe: GDI Object leak detection Pin
John R. Shaw8-Aug-05 19:39
John R. Shaw8-Aug-05 19:39 
Generalmr MFC please do something when I press a key Pin
Spiritofamerica8-Aug-05 10:29
Spiritofamerica8-Aug-05 10:29 
GeneralRe: mr MFC please do something when I press a key Pin
Stober8-Aug-05 11:02
Stober8-Aug-05 11:02 
GeneralRe: mr MFC please do something when I press a key Pin
Michael Kane9-Aug-05 4:48
Michael Kane9-Aug-05 4:48 
GeneralRe: mr MFC please do something when I press a key Pin
Spiritofamerica13-Aug-05 9:46
Spiritofamerica13-Aug-05 9:46 
GeneralRe: mr MFC please do something when I press a key Pin
Rick York8-Aug-05 11:44
mveRick York8-Aug-05 11:44 
GeneralRe: mr MFC please do something when I press a key Pin
Spiritofamerica13-Aug-05 9:49
Spiritofamerica13-Aug-05 9:49 
GeneralDrawing Text into a Bitmap with GDI Pin
wookie1828-Aug-05 8:56
wookie1828-Aug-05 8:56 
GeneralRe: Drawing Text into a Bitmap with GDI Pin
Chris Losinger8-Aug-05 10:07
professionalChris Losinger8-Aug-05 10:07 
GeneralRe: Drawing Text into a Bitmap with GDI Pin
wookie1828-Aug-05 10:27
wookie1828-Aug-05 10:27 
GeneralRe: Drawing Text into a Bitmap with GDI Pin
John R. Shaw8-Aug-05 20:02
John R. Shaw8-Aug-05 20:02 
GeneralRe: Drawing Text into a Bitmap with GDI Pin
Anonymous9-Aug-05 2:44
Anonymous9-Aug-05 2:44 
GeneralRe: Drawing Text into a Bitmap with GDI Pin
John R. Shaw9-Aug-05 9:48
John R. Shaw9-Aug-05 9:48 
GeneralShow bitmap on Button Pin
Aditya Rao8-Aug-05 8:31
Aditya Rao8-Aug-05 8:31 
GeneralRe: Show bitmap on Button Pin
David Crow8-Aug-05 9:29
David Crow8-Aug-05 9:29 

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.