-> Well, I tested your script. It gains appreciable memory at each menu
-> invocation. My deep cascading example, stays steady in memory use.

sigh.  yes, i just observed this myself w/ "top".

->  ( And as a side note, this is where using
-> strict comes into play..... it can force closures of localized
-> variables/objects, and hopefully reuse the memory.

again, i hope this remains a choice anyway, esp. if the ridiculous menu methods go unchanged (now you have to do it our way! hahahah!)

The real finished app is still only a quarter the size of firefox (when it starts...). It's actually to build song lists for an mp3 usb-stick, which has three buttons (play/pause, forward, back), no screen, and plays an UNSORTED vfat directory -- the tracks are played in the order they get copied into the stick, period, meaning you cannot erase and substitute, reorder, etc. without erasing and rewriting the entire (512mb) directory. Strangely, the manufacturers do not even make software for them ("Just start up Explorer and start copying!"; i suppose most people prefer the somewhat more expensive ipod. as a skateboarder, i would rather trash a $20 item). According to my search, only one guy makes anything at all to do this under linux, and boy is it massive once you consider the number of obscure GUI libraries required! So in some sense i am starting to consider this an Important Project. Certainly I've learned a ton about perl and the Tk module actually works way better than i would have imagined. There you go.

If i get any more elaborate, tho, i will have to deal with the memory issue, so thanks much for warning me now (I thot i was being so smart here).

-> P.S.  You may want to look at Perl/Gtk2, which has a much better
-> underlying object design, than Tk.  It's object cleanup is much
-> better,
-> and the menuing system is alot clearer.

perl/Gtk2 ?!??! egads...eureka...who would have imagined such a thing! Scorch my sleep depro....

peace & love -- MK

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to