home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!utcsri!torn!news.ccs.queensu.ca!slip207.telnet1.QueensU.CA!dmurdoch
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Subject: Re: Help! How to increase # of file handles in BP7 protected mode?
- Message-ID: <dmurdoch.330.727668232@mast.queensu.ca>
- Keywords: DPMI File Handles
- Lines: 26
- Sender: news@knot.ccs.queensu.ca (Netnews control)
- Organization: Queen's University
- References: <C182J4.Jyw@ccu.umanitoba.ca>
- Distribution: all
- Date: Fri, 22 Jan 1993 02:03:53 GMT
-
- In article <C182J4.Jyw@ccu.umanitoba.ca> umbrzez0@xenon.cs.umanitoba.ca (Andrzej Brzezinski) writes:
-
- >I have a real problem. I am using Borland Pascal 7.0 to write a protected-
- >mode application. I need to increase the number of file handles (to at least
- >50). I tried to use DOS function Set Handles Count (DOS >= 3.3):
- >var
- > R :Registers;
- >begin
- > R.AX := $67; { DOS function number }
- > R.BX := 50; { number of file handles }
- > MsDos(R);
- > ....
- >end.
-
- >Can anybody tell me why it does not work and how to accomplish the task?
-
- One possibility is that you've put the function number in AL, not AH. But
- assuming that's just a typo above, it's likely that it's failing because
- there isn't enough free memory available to DOS to allocate a new file
- table. In real mode, it's easy to free up memory for DOS (use SetMemTop),
- but I'm not sure how you'd do it in protected mode.
-
- You should examine the error code being returned: the carry flag will be
- set if there's an error, and AX will contain the code.
-
- Duncan Murdoch
-