X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Benjamin David Lunt" Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer References: <0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net> Subject: Re: DJGPP Setup? Lines: 47 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.3138 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 X-RFC2646: Format=Flowed; Original Message-ID: <9NFyl.43886$5t4.31555@newsfe24.iad> X-Complaints-To: abuse-news AT frontiernet DOT net NNTP-Posting-Date: Thu, 26 Mar 2009 07:03:33 UTC Organization: Frontier Date: Thu, 26 Mar 2009 00:03:18 -0700 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Rod Pemberton" wrote in message news:gqadn4$qc1$1 AT aioe DOT org... > "Ethan Rosenberg" wrote in message > news:0KGZ00GQ8UBIYMM0 AT mta4 DOT srv DOT hcvlny DOT cv DOT net... > > In comp.os.msdos.djgpp, > >> I have a program that opens almost 30 files. > > How is that possible?... What version of DOS and DJGPP are you using? Hi Rod, I don't remember trying it or not, it has been a long time, but if you move the FileHandleArray to a larger buffer, point offset 0x34 in the PSP to this buffer, and place a larger number at offset 0x32, you could probably have quite a few more open files. However, I don't know if there is still a limit in the DOS internals or not. I would guess you have to call an undocumented DOS service (3.3x or higher) to tell DOS that you have moved the Handle Array and it is now larger. I haven't tried it, but it might be an interesting idea to simply create a bunch of files, say file000.bin to file020.bin and after modifying the PSP as described above, open files file000.bin through file019.bin, then open file file020.bin and read from it. Does it read the correct data? Anyway, it has been years since I even thought about doing this. Ben -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Forever Young Software http://www.frontiernet.net/~fys/index.htm http://www.frontiernet.net/~fys/collections.htm To reply by email, please remove the zzzzzz's Batteries not included, some assembly required.