TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jonathan de Boyne Pollard
from: Paul Edwards
date: 1996-12-26 16:05:52
subject: File Handles

> Ok, so how do you do this properly?  for (x = 0; x <
 > ULONG_MAX; x++) DosClose(x);

JdBP> I'd use the value obtained by DosQueryRelMaxFH (with a delta of zero) as
JdBP> the highest file handle.  Other than that, yes.

Ok, you've convinced me.  Now, can you tell me whether what Peter said
(which was "wrong"), is actually right in a difference context?
BFN.  Paul.

PE> Now the reason that cvp let's me open 15 files, is 
PE> because it allocates fileno's of 5-19, this time 
PE> WITHOUT skipping 6 and 12!

PE> Now, can anyone explain WHY cvp would do such a thing, 
PE> and secondly, given that it CAN, does this mean that I

PF> I'll bet it has nothing to do with cvp directly (someone else up the 
PF> parent tree is using those file handles already),  but has to do with 
PF> the equivalent of a "start /i".

PF> What happens if you start a session with "start /i" and run your 
PF> compile from there?
@EOT:

---
* Origin: X (3:711/934.9)

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.