Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!solo!vaxb.acs.unt.edu!ff76 From: ff76@vaxb.acs.unt.edu (Jhinuk Chowdhury) Newsgroups: comp.os.msdos.apps Subject: DOS file handles & mouse drivers Message-ID: <1990Dec6.152246.42736@vaxb.acs.unt.edu> Date: 6 Dec 90 15:16:46 GMT Lines: 25 I am required to load a mouse driver (MOUSE.COM) in RAM for many of my application programs (XtreePro Gold, PCWrite, etc.). In order to utilize the maximum amount of RAM, I load the MARK utility in memory first and then the mouse driver with a command like the one below: C:\UTIL\MOUSE C:\MENUS\XTREE.MNU. Finally, I load the application program (Xtree, in this case). The last line in my XTREE.BAT batch file is RELEASE that unloads all TSRs loaded in RAM after MARK. I use the same technique to load any program that requires a mouse driver. The problem is every time this batch file is executed, one file handle gets tied up. In the previous exmple, we would have one file handle associated with XTREE.MNU tied up. If a run Xtree.bat again, more file handle, one for every run and each associated with Xtree.mnu, will get tied up. I need to be able to use as much RAM as possible *without* tying up file handles like this. Any ideas/solutions ? I use a Compuadd 286/12 with 640K, and 384K extended memory (mostly used up), running MS-DOS 3.3. If you prefer, please respond to me directly at FF76@UNTVM1.BITNET and if I have useful responses, I'll summarize. Thanks in advance. - Jhinuk.