home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / ms / programm / 7405 < prev    next >
Encoding:
Internet Message Format  |  1992-07-28  |  3.6 KB

  1. Path: sparky!uunet!munnari.oz.au!asgard!ben
  2. From: ben@mlb.dmt.csiro.au (Ben Simons)
  3. Newsgroups: comp.windows.ms.programmer
  4. Subject: SUMMARY: The System Error - cannot read from device AUX
  5. Summary: This is a SUMMARY.
  6. Message-ID: <180@hati.mlb.dmt.csiro.au>
  7. Date: 29 Jul 92 04:58:33 GMT
  8. References: <1992Jul15.013026.7819@nuscc.nus.sg> <1992Jul15.081305.13948@cs.tu-berlin.de> <8922@travis.csd.harris.com>
  9. Organization: CSIRO Division of Manufacturing Technology, Melbourne, Australia
  10. Lines: 83
  11.  
  12.  
  13. Thank you all for your swift replies! I recieved mail from:
  14.  
  15.     msaletni@Jade.Tufts.EDU (Michael J. Saletnik)
  16.     courtney@data.rain.com (Courtney Meissen)
  17.     heathh@cco.caltech.edu (Heath Ian Hunnicutt)
  18.     magmy@modeld.no (Magne Myrtveit)
  19.     poffen@sj.ate.slb.com  (Russ Poffenberger)
  20.     raymondc@microsoft.com
  21.  
  22. which indicates that a wide variety of people are reading this newsgroup.
  23. This is very encouraging. It appears that the solution is quite simple,
  24. my problem was that i didn't understand what the AUX port had to do with
  25. anything.  I will give you a flavour of the replies...
  26.  
  27. In summary, the situation is this:
  28.  
  29. "Since you are running the DEBUG kernel, it is attempting to log errors
  30. and warnings to device AUX. This device can be an additional monitor,
  31. CodeView, or the DBWin sample application included in the 3.1 SDK.
  32. [ ... ]  [ie: Michael mentions \c700\bin\dbwin]" - msaletni.
  33.  
  34. "I get this when I run debug Windows with certain applications
  35. (Actor, Toolbook), so I've gone back to retail Windows.  I believe
  36. that Windows is trying to 'RIP' and send info out the com port
  37. on an error that occurred.  [ ... ] " - courtney.
  38.  
  39.  
  40. [The most amazing reply was from heathh, I hope heath doesn't mind me
  41.  including his mail - i found it VERY entertaining - it brightens a dreary day!]
  42.  
  43. " There have been sporadic reports of the retail windows
  44.   kernel trying to use a debug terminal when it is exceedingly stressed
  45.   out, but the likelihood is that a misbehaving application is the true
  46.   culprit.  
  47.     
  48.   You see, any program can write a string of debug output
  49.   using the (aptly named) DebugOutput and OutputDebugString API
  50.   calls.  For a good time, try the following code (in either
  51.   retail or debug build of Windows):
  52.     :
  53.     :
  54.     case WM_PAINT:
  55.        DebugOutput("Crash-o-rama!");
  56.     :
  57.     :
  58.  
  59.   You'll get another visit from the friendly double-plus-ungood
  60.   system error dialog box.  MS left the code for DebugOutput in the
  61.   retail version so that apps could retain debug code (which would
  62.   have to be enabled via some sort of hidden mechanism).  Then, if your
  63.   app goes nuts in the field, you just take a terminal to the 
  64.   customer's site, turn on the debugging features via some hidden
  65.   menu option (or whatever...) and rock-n-roll.
  66.  
  67.   Unfortunately, MS did not really stress in the SDK docs
  68.   that DebugOutput() can lead to very bad times when used without
  69.   an attatched terminal.
  70.  
  71.   There are other such utilities, notably OX.SYS,a device
  72.   driver for DOS which traps the terminal output.  I forget
  73.   who wrote it, but you can probably get it off of ftp.cica.indiana.edu.
  74. " - heathh.
  75.  
  76.  
  77. "It seems to me that you are running DBWIN.EXE with output to COM1.
  78. See the DBWIN options menu." - Magne.
  79.  
  80.  
  81. "When running the debugging kernel, it wants to send the debug output to the
  82. AUX port (com 1) by default. The way around this with Windows 3.1 is to load
  83. the dbwin sample application which re-directs the debug output how you choose."
  84. - poffen.
  85.  
  86.  
  87. "The debug version of Windows 3.1 uses COM1 (aka AUX) to communicate
  88. with the programmer." - raymondc.
  89.  
  90.  
  91. ==================
  92. AHA! Once again thank you all. I guess it was pretty simple, really.
  93. It always is once you see the answer... :-)
  94. ben.
  95.