🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.windows.ms.programmer
3 messages
3 total messages Started by Ben Simons Mon, 27 Jul 1992 11:53
System Error, Cannot Read from Device AUX
#76
Author: Ben Simons
Date: Mon, 27 Jul 1992 11:53
17 lines
811 bytes
Hi all,
	I'm getting this error dialog box that says:

		System Error

	Cannot read from device AUX

and it just keeps coming up, despite my selection of Cancel or Retry.
I wish I knew what this meant - can anyone tell me? I know that I
only get this message when i'm running in the debug version of
windows 3.1.

a direct email would be muchly appreciated; i'll summarise etc...
thanks,
ben.

PS: Is there a FAQ file for this group at some ftp site? 
Re: System Error, Cannot Read from Device AUX
#87
Author: Heath Ian Hunnicutt
Date: Tue, 28 Jul 1992 04:42
65 lines
2900 bytes
ben@mlb.dmt.csiro.au (Ben Simons) writes:
>Hi all,
>	I'm getting this error dialog box that says:

>		System Error

>	Cannot read from device AUX

>and it just keeps coming up, despite my selection of Cancel or Retry.
>I wish I knew what this meant - can anyone tell me? I know that I
>only get this message when i'm running in the debug version of
>windows 3.1.
	
	The box comes up because the debugging kernel expects
you to have a terminal connected to COM1. (aka AUX)  The kernel
uses the terminal to write out stack traces when a GPF or RIP occurs.
(General Protection Fault and Rest In Peace, respectively...)
If you don't have the terminal installed, things really go bad for you,
as you noticed.

	There have been sporadic reports of the retail windows
kernel trying to use a debug terminal when it is exceedingly stressed
out, but the likelihood is that a misbehaving application is the true
culprit.  
	
	You see, any program can write a string of debug output
using the (aptly named) DebugOutput and OutputDebugString API
calls.  For a good time, try the following code (in either
retail or debug build of Windows):
	:
	:
	case WM_PAINT:
	   DebugOutput("Crash-o-rama!");
	:
	:

	You'll get another visit from the friendly double-plus-ungood
system error dialog box.  MS left the code for DebugOutput in the
retail version so that apps could retain debug code (which would
have to be enabled via some sort of hidden mechanism).  Then, if your
app goes nuts in the field, you just take a terminal to the 
customer's site, turn on the debugging features via some hidden
menu option (or whatever...) and rock-n-roll.

	Unfortunately, MS did not really stress in the SDK docs
that DebugOutput() can lead to very bad times when used without
an attatched terminal.

	In the very near future, I'll be releasing a Shareware
utility that traps all DebugOutput strings, displays them in
a window, and averts sending them to the (non-existent)
terminal.
	There are other such utilities, notably OX.SYS,a device
driver for DOS which traps the terminal output.  I forget
who wrote it, but you can probably get it off of ftp.cica.indiana.edu.


See ya,
Heath

PS: This was typed over modem connection with lots o line noise. 
Please forgive me a few omitted/superfluous letters.

-- 
On Saturday, April 18, 1992, this .sig became self-aware.
Re: System Error, Cannot Read from Device AUX
#137
Author: Martin Seeger
Date: Tue, 28 Jul 1992 19:30
16 lines
901 bytes
ben@mlb.dmt.csiro.au (Ben Simons) writes:

>	I'm getting this error dialog box that says:
>		System Error
>	Cannot read from device AUX

I got that message sometimes instead of an UAE. It seems that this one
loves to appear when someone garbled the stack. In what kind of situation
do you get it? Are you running a special (or self written) program?

Greetings 

   Martin
-- 
Martin Seeger, Hansastrasse 75, 2300 Kiel, +49 431 81100
"Windows NT: A little step for an OS, a big step for Windows."
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads