TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Herbert Bushong
from: Jonathan de Boyne Pollard
date: 1997-03-02 12:29:36
subject: FCBS probs

HB> Is there an FCBS bug with Borland C++ 4.5?

Not that I know of; and before you ask, this isn't the FCB bug in OS/2 Warp
4 that people have encountered.  If you had suffered from that bug, your
would have seen a kernel TRAP and a dirty shutdown.

 HB> but when I run the resulting EXE, it traps with a SYS0035 error [...]

Usually an error caused by a DOS program performing an FCB file I/O call
would be returned to the program in the AX register.  It's odd that this
raises a hard error and invokes the hard error handler for the VDM.

However, one thing that is important is to _use the debugger_ and _find out
what the program is doing_.  It's no good saying "my program has an
error in it somewhere".  Get out the Borland debugger, and find out
where the error is.

Without more information, I can only make one guess, and that guess is that
you have passed an incorrectly sized or corrupted buffer to a Borland C++
for DOS library function that makes FCB calls (such as _dos_findfirst).  

 ¯ JdeBP ®

--- FleetStreet 1.16 NR
* Origin: JdeBP's point, using Squish (2:440/4.3)
SEEN-BY: 50/99 54/99 270/101 620/243 625/160 711/401 413 430 934 712/311 407
SEEN-BY: 712/505 506 517 623 624 704 713/317 800/1
@PATH: 440/4 141/209 270/101 712/624 711/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™.