TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: All
from: Russell Coker
date: 1995-01-31 18:11:32
subject: DosExitList /0

I had a lot of trouble in tracking down a problem in my program which
was causing it to give an exception C0010001 in DOSCALL1.DLL.  I thought
that this meant I had some sort of parameter passing error to a Dos*() API
call, and IPMD didn't do anything useful for me (when it went into my exit
list it went into assembler mode instead of C mode - not having a good
assembler reference on hand I couldn't do anything with that).
   Eventually I found the problem when I moved some code from the ExitList
function into a normal function and OS/2 reported a divide by 0 error!  Why
does a divide by 0 error report such a strange error code when it happens
in an exit list as opposed to the usual "Divide by 0" message?

   cya


--- Maximus/2 2.02
* Origin: Multi - 61-3-739-7145 (3:633/363)
SEEN-BY: 12/2442 620/243 624/50 632/103 301 341 348 386 998 633/104 252 260
SEEN-BY: 633/363 371 373 379 634/384 635/301 502 503 636/100 638/100 640/820
SEEN-BY: 690/660 711/409 410 413 430 807 808 809 934 942 949 955 712/515
SEEN-BY: 713/888 800/1 7877/2809
@PATH: 633/363 260 371 635/503 632/348 711/409 808 809 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™.