preload

Close unused GUI maps

Posted by Albert Gareev on Jul 05, 2007 | Categories: ImplementationSource code

Maintaining an old messed up suite of WinRunner scripts?

See how they call / use each other. Note if GUI map files are opened and never closed. Know that it’s a serious performance issue. Notice name duplication issue.

Solve the problem by closing GUI maps and cleaning memory.


public function gui_reset() {
 GUI_close("<temporary>") ;
 GUI_close_all();
 GUI_unload_all();
 return (E_OK);
}


  • Leave a Reply

    * Required
    ** Your Email is never shared

Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported
This work by Albert Gareev is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported.