Mail Archives: djgpp/1998/05/04/07:01:54
walker writes:
>My problem is : when this program is excuted in rhide debugging
>environment, my interrupt handler functions normally. But after
>leaving rhide, this function can not work anymore. After checking
>the memory (using c:\debug), I found the interrupt handler
>is not maintained in the memory after leaving rhide.
Well, of course! When you quit from your program it is removed from
memory, so you must unhook the interrupt handler before you do this.
If you need your code to remain resident, you must write your program as
a TSR. I'm afraid I can't help you with the details of how to do this in
djgpp, but I believe it is possible (the DPMI spec has some info about
making 32 bit TSR programs).
--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Pigs use it for a tambourine" - Frank Zappa
- Raw text -