GDI Object leak when switching dreams

Thursday, September 13, 2007 by Agrabren | Discussion: DeskScapes

I'm running a stability test on Dreamscene/Deskscape, because of the convenience of calling "start Xxx.dream" from a batch script every 10 seconds. Each new dream, between one and three GDI objects are leaked. After an overnight stress run, the GDI starts to fall apart. These leaks are coming from explorer.exe, where the dreamscene and deskscape DLLs are loaded. I am not using any dynamic dreams for this test, these are a mix of MPG and WMV. There does not seem to be a direct relationship between which dream is loading, and the number of GDI handles leaked.

Dreams in loop:
  RollerCoaster.dream
  SharkPit.dream
  Snow2.dream
  SunsetSea.dream
  Flow.dream
  Matrix21.dream

The dreams are started, in that order, one every 10 seconds.

Thanks,
Kevin

Neil Banfield
Reply #1 Thursday, September 13, 2007 11:00 AM

Leaks in video dreams will be a problem with dreamscene (or possibly the video decoders)

It would be interesting to repeat the test with a dynamic dream.

Agrabren
Reply #2 Thursday, September 13, 2007 1:57 PM
I'll give it a try after this run.
Agrabren
Reply #3 Thursday, September 13, 2007 3:15 PM
It still leaks, but it's much slower, and more intermittent. After running for over an hour, it leaked about 350 GDI objects.

Loop:
ovals.dream
box.dream (This is the bouncing box one, I just renamed it to make it easier to script)

I don't have any other dynamic dreams available to me to test on that machine, but a leak still occurred. Sometimes, the GDI handle count would drop a bit after a few moments, but over time, it didn't drop back to normal.

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01