[ros-bugs] [Bug 6119] DeleteDC leaks 4kb of memory

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Sat Apr 16 01:22:04 UTC 2011


http://www.reactos.org/bugzilla/show_bug.cgi?id=6119





--- Comment #4 from jimtabor <james.tabor at reactos.org>  2011-04-16 01:22:03 CET ---
(In reply to comment #3)
> (In reply to comment #2)
> > Leak per process? Or when the process dies the 4 k is still gone? DCATTR uses a
> > per process cache and this might be where the confusion is at.... Thus, normal.
> > 
> Leak means in that case, that the WM_TIMER refresh of each app consumes a lot
> of additional memory which may result in BSOD due to lack of memory. It's not
> enough to free it after the end of application, because it leads to an
> unexpected early end...
> 
> AFAIR as principle of a cache it will reuse the freed DC at next
> CreateCompatibleDC-call, but the next identical call will consume the next 4 k.
> Just to make clear it can't keep unchanged...
> 

Also hdc = CreateCompatibleDC(NULL); should return the same display DC not a
new one!


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.



More information about the Ros-bugs mailing list