| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | C600bug.Txt |
PE>
> One other thing to note, is that if you go into cvp (Codeview),
> and do a file, OS-shell, it somehow manages to clear the device
> drivers out of all the low-numbered file handles, which means
> that you don't need to patch anything, you simply run cvp as
> your main shell! I don't know why this does that, or more
> importantly, how to write a program a lot smaller than cvp, that
> both increases the number of file handles AND clears the low
> numbered file handles. If anyone knows how to do the latter,
> could you please contact Paul Edwards at 3:711/934{at}fidonet.
PE>
Oh come on, Paul. That's obvious. Just use DosSetRelMaxFH to find the
size of the per-process file table, N, and loop from 3 to N closing all
open file handles. You can expand the table at the same time.
I fixed a program at work to do this when it first starts, because we
were invoking RC.EXE from within the program, and in certain
configurations there would be only 44 available file handles, not 45,
and the spawned RC.EXE would fall over with a C1017 (or C1015, I forget
which) error message.
Needless to say, RC.EXE is built with MSC 6.
> JdeBP <
___
X MegaMail 2.10 #0:
--- Maximus/2 3.01
* Origin: DoNoR/2,Woking UK (44-1483-725167) (2:440/4)SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1 @PATH: 440/4 141/209 270/101 712/515 711/808 934 |
|
| 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™.