Why am I having trouble creating a complex GUI using Perl-Tk on Windows?

I have a Perl-Tk GUI with about 50 additional windows. Each additional window has about 50 buttons and 50 menus (each menu has about 4 options).

When I run it on UNIX / Linux / Solaris, it runs smoothly.

When I run it on Windows, the GUI freezes in the middle of the download, so I see only some of the buttons or the GUI does not appear at all - it seems to be stuck.

The perl process reaches 50,000K of memory and 100% CPU utilization. But when I pick up some buttons / menus and start again - this is normal.

So it seems that Perl-Tk does not have enough memory to load the GUI into windows.

Is there anything I can do to make it work correctly? Are there any special configuration flags to tell Windows to give Perl-TK some extra memory, or say perl to come up with more memory?

Any help would be appreciated ...

+3
source share
1 answer

The best way to get some details about the underlying problem is with a code profile.

perl -d:DProf <your program name>

This will give you complete information about the behavior of your program.

You can then activate the code causing this erroneous behavior.

This will lead us in the right direction.

0
source

Source: https://habr.com/ru/post/1709162/


All Articles