i am running: perl 5.8.6
  Locally applied patches:
        ActivePerl Build 811
        21540 Fix backward-compatibility issues in if.pm
        23565 Wrong MANIFEST.SKIP
  Built under MSWin32
  Compiled at Dec 13 2004 09:52:01
Win32-GUI                [1.0]
Win32-GuiTest         [1.50.4]

updated to
Win32-GUI                [1.3]
problem seem to occur less, but when i run winspy++ and spy the PerlWin32Gui_STD class, the keys that i hide (from script below) are still there and memory usage is very high. Is there a way for me to force the destruction of those object in perl and memory?

i probably won't be able to provide example for this problem; but what my script does is: discover options from a win32 class #32770 dialog, then create checkbox/buttons/etc... on a PerlWin32GUI_STD testconsole, then loops and set each option as selected on testconsole (having figure out how to do for all option yet, since Windows handle id for all object changes after re-open, btw anyone have ideas on how to keep handle id same ???), then a rediscover option that hides(trying to destroy) all objects on testconsole and discover option of other tabs (or same tab) from class #32770 dialog and the process repeats...

thanks

Jeremy White <jez_white@hotmail.com> wrote:
: Wed, 25 Jan 2006 14:28:14 -0800 (PST)
>
>my gui script creates checkbox (along with some other lables and buttons),
>when certain tasks are done, more checkboxes (with same name) are created,
>this creates many unnecessary reference/handle in memory and sometime hangs
>or crash... how to destroy gui object created after certain task is done,
>before program exit? thanks
>

Make sure you are using the latest version of Win32-GUI as it contains
various fixes. If this version still crashes, then this is a new issue - if
so, could you provide an example so we can find the problem?

When a Win32-GUI object goes out of scope, it's handle is released
automatically. You should be able to create and destroy Win32-GUI objects
dynamically with no memory leaks.

Cheers,

jez.




Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.