home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4893 < prev    next >
Encoding:
Internet Message Format  |  1993-01-12  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!usc!howland.reston.ans.net!spool.mu.edu!olivea!mintaka.lcs.mit.edu!ai-lab!rice-chex!jne
  2. From: jne@rice-chex.ai.mit.edu (Jeff Eisen)
  3. Newsgroups: comp.os.ms-windows.programmer.misc
  4. Subject: GP Trap device driver
  5. Message-ID: <1iveutINNimf@life.ai.mit.edu>
  6. Date: 12 Jan 93 21:58:53 GMT
  7. Organization: MIT Artificial Intelligence Lab
  8. Lines: 38
  9. NNTP-Posting-Host: rice-chex.ai.mit.edu
  10.  
  11. Hi.
  12.  
  13. I'm new to device driver programming, so excuse me if my
  14. terminology is not 100% correct.
  15.  
  16. I have taken over a GP Fault device driver written by someone
  17. else. It almost always works ok.
  18.  
  19. When in 386 enhanced mode in windows 3.1, the driver is hooked in with 
  20. Hook_PM_... and defined to handle interrupt "0dh".
  21.  
  22. Normally, when I get a GP fault, my handler kicks in and throws my
  23. application (lisp) into the debugger, instead of windows putting up
  24. the "Do you want to close" screen.
  25.  
  26. I have a repeatable case though, where I'm not sure why its GP faulting,
  27. with the following behavior:
  28.    1) If I don't install my handler, there is no GP fault (at least there 
  29.       is no "Do you want to close" screen and CVW doesn't detect the fault).
  30.    2) If my handler handles the fault, I get thrown into my debugger
  31.       in an almost-dead state.
  32.    3) If my handler declines the fault by chaining to the next handler
  33.       in the chain, there is no GP fault (at least there is no "Do you
  34.       want to close" screen and CVW doesn't detect the fault.
  35.  
  36. Is it possible that there are some classes (error codes?) of GP faults
  37. that my device driver is supposed to know to ignore?
  38.  
  39. Is there any good way to debug this (I've never used WDEB386 or WINICE,
  40. but I could learn them if necessary)?
  41.  
  42. This is a real bitch to debug because the error only happens when I'm
  43. set up so that CVW won't catch the error :-(
  44.  
  45. Thanks in advance for any help or ideas.
  46.  
  47. Jeff Eisen
  48. jne@ai.mit.edu
  49.