Shoutbox

GDI GDI Resource Leaks - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: WLM Plus! Bug Reports (/forumdisplay.php?fid=7)
+----- Thread: GDI GDI Resource Leaks (/showthread.php?tid=51455)

GDI GDI Resource Leaks by _Guido_ on 10-06-2005 at 11:11 AM

Hey!,
I think I've found some GDI Resource Leaks:
I've ran MSN Messenger (7.5.0299) with Messenger Plus 3.61.145 through GDIUsage to trace GDI resource usage snapshots.
The bug is:
I take a snapshot of MSN without any conversation window opened. Just the user list.
Then I open a Conversation Window, close it and take another snapshot. The logic says that the GDI resource usage count must remain the same. But there are two resources that remain allocated: a Bitmap and a MemDC. Then I inspect the MemDC and it contains the bitmap that's placed to the left of the input box (the one with the Plus logo and the little speaker).
This happens everytime I open and then close the window... so, for every open-close (I've not tried typing yet), 2 GDI resources get leaked.

--- EDITED: Removed another suspected leak ---

Although I'm pretty busy, I'll try to keep searching for these leaks (I had to do it because I work also with flash and development IDEs, and everytime i checked the GDI resource usage, MSN was in it's 1400 or so resources -compared to the 300 or so that get allocated on execution and login-).

Kind Regards,
Guido Scalise
Las Palmas de Gran Canaria

Edit: I've double checked the "leak" in About dialog and It wasn't a leak really.


RE: GDI GDI Resource Leaks by Patchou on 10-12-2005 at 05:36 PM

Hi Guido,

thank you very much for this detailed report. The info you gave me is precise so I'll answer the same way: what you observed is a normal behaviour in Messenger Plus!: when you open a chat window, several objects are created. When you close it, these objects are kept alive for some time for several technical reasons. The deletion routine will be called next time a chat window (any chat window) is closed after at least 20 seconds since the original window was closed (hope I'm making sense).

That being said, there could be a leak somewhere else, I'd appreciate if you could check the other objects you noticed. As for the high count of GDI objects, you could easily get over 1,000 with more than 6 chats opened but this number should go back to about 500 when those chat windows are closed.


RE: RE: GDI GDI Resource Leaks by _Guido_ on 10-12-2005 at 06:20 PM

quote:
Originally posted by Patchou
Hi Guido,

thank you very much for this detailed report. The info you gave me is precise so I'll answer the same way: what you observed is a normal behaviour in Messenger Plus!: when you open a chat window, several objects are created. When you close it, these objects are kept alive for some time for several technical reasons. The deletion routine will be called next time a chat window (any chat window) is closed after at least 20 seconds since the original window was closed (hope I'm making sense).

That being said, there could be a leak somewhere else, I'd appreciate if you could check the other objects you noticed. As for the high count of GDI objects, you could easily get over 1,000 with more than 6 chats opened but this number should go back to about 500 when those chat windows are closed.


Hi again!,
   I checked the behaviour before posting the bug, as at first I thought it could be related to some sort of resource recollection -as you stated-. There are some objects that get deleted after some minutes, but these Bitmap and MemDCs stay allocated for hours -so probably they're actually leaked resources-.

Kind regards,
Guido