MarxMenu and TSR Control

Prev Next Home Home Table Of Contents Index

MARXMENU AND TSR CONTROL

MarxMenu along with the TSR utilities that come with MarxMenu, can load and unload TSR's under menu control. This is handy when you want to run a big application and need to free up some memory to do it. Since MarxMenu is a zero k menu system, unloading TSR's is possible but it has it's tricks.

The problem you run into is that when one batch file calls another batch file, the way MarxMenu normally runs, DOS creates a small batch file control block in memory. This control block stays in memory after the TSR is released creating a region of trapped memory. Although this memory is freed, it isn't usable.

The way around it is to jump to the batch file that releases memory instead of calling it. This is done by setting MXCMD to the name of the batch file you want to run. The only problem is that when you jump to the other batch file, it won't automatically return to MARX.BAT. You must therefore end your batch file with a command bringing you back to MARX.BAT.


 MEMHOG.BAT
 -----------
 Rem UnLoad SideKick
 RELEASE SK
 CD\MEMHOG
 MEMHOG
 MARK SK
 SK
 MARX MAIN

In your MAIN menu:


 OnKey 'H'
    |MxCmd = MEMHOG

See the documentation file on the TSR utilities disk for more information on how to use MARK and RELEASE.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home