home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / msdos / programm / 11835 < prev    next >
Encoding:
Internet Message Format  |  1993-01-06  |  1.6 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!swrinde!gatech!asuvax!ennews!mcdphx!mcspdx!adpgate!joes
  2. From: joes@adpgate.UUCP (Joe Biehner)
  3. Newsgroups: comp.os.msdos.programmer
  4. Subject: defining a timer interrupt function question
  5. Message-ID: <1827@tongo.UUCP>
  6. Date: 6 Jan 93 17:32:29 GMT
  7. Organization: ADP Dealer Services R&D, Portland, OR
  8. Lines: 31
  9.  
  10. I was wondering if anybody has had any experience implementing timer interrupt
  11. functions using Borland C++ 5.0/5.1?  Recently I attempted to implement one
  12. for a project and was unsuccessful; Borland Tech Support wasn't much help.
  13.  
  14. What I was able to do was implement the example timer interrupt in the book,
  15. but that wasn't my exact implementation.  The normal stuff worked fine - I 
  16. could save the old interrupt address to a variable and set mine, but when mine
  17. ran, the machine seemed to hang.
  18.  
  19. Certain things I have learned - you can't use 'printf' from an interrupt
  20. function (it messes up the screen).  Is there anything else that CAN'T be done?
  21. (e.g., if you can't call a function from the interrupt function, where the
  22. called function is part of the main program, etc.)
  23.  
  24. Also, any tips for debugging such a function would be extremely appreciated,
  25. since 'printf' is NOT an option.
  26.  
  27. If I've left out any significant details, please let me know.  I'd really like
  28. to understand how to solve this.  By the way, probably the best way to respond
  29. is via the net; I'm not sure that my account is fully equipped to receive
  30. e-mail.
  31.  
  32. Thanks 10^6 in advance.
  33.  
  34.  
  35.  
  36. Joseph Tokarski, Software Engineer
  37. ADP Dealer Services
  38. 1950 Hassell Rd.
  39. Hoffman Estates, IL  60195
  40. (708) 397-1700
  41.