[comp.os.os2.programmer] _a_msg_exit

Marc Cohen 8/443-3945 <mlcohen@bcrvmpc1.vnet.ibm.com> (05/22/91)

>_a_msg_exit() is one of those nasty procedures that MS put in that kills
>your program when it does something nasty.  Another example:  do a divide
>by zero in a PM program.  You don't get a trap, you don't get any beeps,
>you get nothing.  Your application just disappears ("Look ma, no
>hands!")!  Check your code, and variable values, and make sure that
>nothing is done in any thread that might be considered "naughty".
Actually, __amsg_exit does place an error message out on standard
output. Unfortunately, standard output for a PM program is the bit
bucket, unless you redirect it. (Actually, maybe it's standard error!
Whichever; same difference. The effect is the same.)

Marc L. Cohen                  vnet: MLCOHEN at BCRVMPC1
                           internet: mlcohen@bcrvmpc1.vnet.ibm.com