www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/04/07:01:54

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Who can help me?
Date: Mon, 4 May 1998 10:02:37 +0100
Organization: None
Message-ID: <SlKTzKAtQYT1Ew0i@talula.demon.co.uk>
References: <6ijhft$3tu$1 AT news DOT itri DOT org DOT tw>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 19
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019