Tordex Community
Resource leak - Printable Version

+- Tordex Community (http://forum.tordex.com)
+-- Forum: True Launch Bar (http://forum.tordex.com/forum-3.html)
+--- Forum: Bugs (http://forum.tordex.com/forum-10.html)
+--- Thread: Resource leak (/thread-1346.html)

Pages: 1 2 3


- Marsup - 03-30-2004

400 Handles, 500 GDI Handles and 330 USER Handles

the PC was rebooted (by force :p) 10h ago, it was approx > 1000 GDI handles before


- Yuri Kobets - 03-30-2004

Marsup
Currently I have 1400 GDI objects. This is not a rource leaks. How many shortcuts on your TLB? Maybe you can move the seldom used shortcuts into virtual folder. Virtual Folder loads its content only on first open and this will save resources.
On the other hands if this number constantly raise then yes this is resource leaks.

Some time ago I've found GDI objects leaks in one of beta of Eudora (now it is fixed). This application have added some items into context menu and every time I've opened context menu there were big GDI leaks.

Try to open context menu some times with and without shell menu and see how GDI objects raise.


- bbfi - 03-30-2004

Okay. I have some interesting info regarding this.

I ran a test with different plugins. The culprit seems to be the Mail Monitor.

Each time I open and close the Mail Monitor window, the following occurs -
Closed Mail Monitor window
USER - 166
GDI - 592
Opened Mail Monitor window
USER - 187
GDI - 631

Closed Mail Monitor window
USER - 168
GDI - 603
Opened Mail Monitor window
USER - 189
GDI - 642

Closed Mail Monitor window
USER - 170
GDI - 614
Opened Mail Monitor window
USER - 191
GDI - 653

Closed Mail Monitor window
USER - 172
GDI - 625
Opened Mail Monitor window
USER - 193
GDI - 664

Closed Mail Monitor window
USER - 174
GDI - 636
Opened Mail Monitor window
USER - 196
GDI - 677

As you can see, opening and closing the Mail Monitor window increases the USER and GDI handles. So there appears to be a problem with this plugin. ???


- Q Section - 03-30-2004

Marsup - we are sure probably everyone here knows more about system leaks than us but the percent asked for is found on the opening page of Process Explorer in the cpu column (in the example ours is at 3%) and looks like this -


- Marsup - 03-30-2004

You've got it Yuri, I started at 540 and after a little bit of right clicking I'm over 600, how can I fix this?

EDIT: QSection I thought you were talking about system resources, CPU is hardly over 1%


- bbfi - 03-30-2004

Marsup,

Do you open the Mail Monitor window frequently to check your emails?

Each time it is opened and closed, 11 GDI's and 2 USER handles are added. ???

Try it with yours and see if this happens. Wink


- Marsup - 03-30-2004

I've just uninstalled all software I could that appeared in right click, and that leak seems to be gone

Concerning mail monitor I've done several tests and yes there is
just for the exemple:
USER GDI
497 783
Launching mail monitor
521 824
Closing it
501 794

EDIT: right clicking on TLB components (even shortcuts) increase USER objects constantly: 9 more objects on right click, 1 less on close


- HorusUK - 03-30-2004

bbfi Wrote:Each time it is opened and closed, 11 GDI's and 2 USER handles are added. ???
Confirmed here.

Well spotted, bbfi!


- bbfi - 03-30-2004

Thanks HorusUK. I never noticed it before since I haven't had any major crashes lately. Smile

Last time I did any research into this type of problem was when I had my system crashes after 4 to 6 hours of running with Avast antivirus. That took me and those at the Avast forum, along with Alwil's developers, a month to figure out. One of the Avast driver files had a resource leak in it and it was really hard to track down. So from that episode, I guess I got some good training for these types of problems. Wink


- Yuri Kobets - 03-30-2004

Confirmed too. Mail Monitor both GDI and USER objects leaks. TLB itself have USER objects leaks.

Thank you very much for spotting!


- bbfi - 03-30-2004

Yuri,

Thank you for always checking the forums and reading about any problems and ideas we may have. You are always there for us. Big Grin


- Marsup - 03-30-2004

It was a pleasure to help you Yuri Smile at least we spotted some leaks and I personnaly spotted mines Big Grin


- Yuri Kobets - 03-30-2004

Use LiveUpdate to fix resource leaks. See this topic for more information. If you will find more resource leaks or bugs let me know.


- bbfi - 03-30-2004

Yuri,

Tried the Mail Monitor 1.9.9 and the fix for resource leaks is perfect. Big Grin

Thanks a lot. Wink


- HorusUK - 03-30-2004

I can confirm the fix for the resource leak, but I'm still getting problems with messages "not loading", as discussed here. Sad