Guillem Cunillera Wefers wrote:
> Thank you for your attention, but these 2 possible problems doesn't
> appear in my program. I think I have a more basic problem.
> Let me present how I distribute in pseudocode, for a module that can
> easy be extended to more modules.
>
> -------------------
> module_a.pm
> -------------------
>
> # all window definition...for instance $window_a
>
> sub initial       ##the first function that is call for another module
> {
>    ...
>    $window_a->Show()
>   Win32::GUI::Dialog
>   ...
> }

this seems to be exactly the problem Sean pointed out. if you call the
'initial' function for more than one module (assuming they are all similar),
you're in fact calling Win32::GUI::Dialog more than one time. try removing
the Win32::GUI::Dialog call from your modules and placing it in the main
application, where it is called only once.

cheers,
Aldo

__END__
$_=q,just perl,,s, , another ,,s,$, hacker,,print;


Reply via email to