GDI Object leak when switching dreams

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

5,958 views 3 replies
Reply #1 Top

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.

Reply #3 Top
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.