bug in lsbox? Thread last updated on 2003-07-12 07:39:09

Posted by member 1783 on 2003-07-01 05:11:44

i found out that a box which contains shortcuts causes a memory leak. every time when i recycle there's one more gdi object than before and more mem is used. not much, but if you don't turn your comp off for days and do some recycling then it's noticeable.
here's my box, in case i have a typo in there somewhere, which is causing this:
LsBoxName Winamp
LsBoxX 155
LsBoxY -0
LsBoxHeight 22
LsBoxWidth 110
LsBoxBackground box_bg.png
LsBoxBackgroundOffs 1 1 1 1
LsBoxZOrder HUGBOTTOM

*Shortcut "previous" 0 0 prev.png prev_sel.png .none !Amp_Prev
*Shortcut "play" 22 0 play.png play_sel.png .none !Amp_Play
*Shortcut "pause" 44 0 pause.png pause_sel.png .none !Amp_Pause
*Shortcut "stop" 66 0 stop.png stop_sel.png .none !Amp_Stop
*Shortcut "next" 88 0 next.png next_sel.png .none !Amp_Next

Posted by member 42328 on 2003-07-01 15:55:32 link

It is entirely possible. Having done some GDI programing before, I know it is fairly easy to miss deleting out an object.

Typically it is only 4 bytes, but if you try to leave it running for a long while it compounds to where it is a problem.

-Jon

Posted by member 7 on 2003-07-02 01:45:18 link

You really should contact blkhawk in such cases, I don't think he reads this forum.

Posted by member 1783 on 2003-07-02 02:43:52 link

k, i sent him an e-mail :)
thnx for the tips.

Posted by member 42328 on 2003-07-08 21:39:15 link

Did you ever hear back from him?

-Jon

Posted by member 42328 on 2003-07-08 22:01:18 link

I just tested this and my mem usage and GDI objects are exactly the same as before the recycle. I'm using lsbox 2.95 and ls .24.7b3

-Jon

Posted by member 1783 on 2003-07-12 07:37:02 link

well i'm using 3.0 preview (no other way, 2.95 had bugs that crashed ls when destroying boxes) and .24.6 (ILS 9-02-2003).

and btw i haven't heard from him :( have tried to contact him on irc too but no luck.

Posted by member 1783 on 2003-07-12 07:39:09 link

now i have another problem: the fade effect doesn't work :(