EmmmaB / psychtoolbox-3

Automatically exported from code.google.com/p/psychtoolbox-3
0 stars 0 forks source link

Free DirectDraw interfaces and GDI Device contexts at ScreenExit() time. #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
We currently don't release GDI device contexts and DDraw interfaces at screen 
exit time on Windows.
This probably prevents ddraw library et al. from being released during the 
lifetime of the runtime.

-> Causes a few megabytes of lost VM for the remainder of the session.
-> Not a big deal, but something to clean up sometime.

=> CreateDC --> DeleteDC()
=> GetDC --> ReleaseDC()
=> DDraw interface --> deref->Release()

Original issue reported on code.google.com by mario.kl...@gmail.com on 1 Feb 2012 at 2:19

GoogleCodeExporter commented 9 years ago
See ptb forum message #13471 for potential symptom.

Original comment by mario.kl...@gmail.com on 1 Feb 2012 at 2:20