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