News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Do we really need to reset DC selections?

Started by NoCforMe, June 17, 2023, 12:22:05 PM

Previous topic - Next topic

C3

Quote from: NoCforMe on June 18, 2023, 05:36:39 AM
Quote from: Greenhorn on June 18, 2023, 05:12:19 AM
If you open the task manager and add the column "GDI objects" to the view you can see how the GDI objects for that process increases until the window freezes because of the GDI leak.

Hey, all these years and I had no idea you could do that (w/Task Manager). Thanks!

Hey! Pick a Process Explorer from Microsoft's Sysinternals Suite, you can see info about Handles (Peak Handles), GDI Handles and USER Handles.

jj2007

Quote from: jj2007 on June 15, 2023, 06:41:48 PM
Quote from: NoCforMe on June 15, 2023, 01:34:34 PM
Ackshooly, speaking of the clunkiness of the parm1 ... parm3 scheme where you have to figure out what the parms mean, what would be far better would be making the function a vararg function

Like this? Two brushes, a pen and a font (Times New Roman); check in Task Manager, columns user and Gdi objects, whether there's any leak.