delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/28/13:40:48

From: johne AT parallax DOT co DOT uk (John Eccleston)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help: Chaining interrupts
Date: Tue, 28 Jan 97 15:22:34 GMT
Organization: Parallax Solutions Ltd
Message-ID: <854464908.638172@red.parallax.co.uk>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970127184958 DOT 9059J-100000 AT is>
NNTP-Posting-Host: red.parallax.co.uk
Cache-Post-Path: red.parallax.co.uk!unknown AT parsnip DOT parallax DOT co DOT uk
Lines: 40
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

 Eli Zaretskii wrote:
>
>On Mon, 27 Jan 1997, John Eccleston wrote:
>
>> At the risk of overstaying my welcome could someone please explain why
>> whenever I chain interrupts using: 
>> 
>>      _go32_dpmi_chain_protected_mode_interrupt_vector
>> 
>> my program crashes, but when just replacing the existing handler with a 
>> handler wrapped using:
>> 
>>      _go32_dpmi_allocate_iret_wrapper
>> 
>> everything works fine.
>
>Please post both the code which works and the one which doesn't.  It 
>isn't entirely clear what exactly do you replace with what.

Sorry Eli, and everyone else,

I have found what the problem was.  It was due to me de allocating an
IRET wrapper when unhooking the interrupt that had been chained.

Sorry for any confusion or inconvienience caused

Yours shamefacedly and apologetically

John

________________________________________________________________
Parallax Solutions Ltd.   Tel.: 01203 514522
Stonecourt,               Fax.: 01203 514401
Siskin Drive,             Web : http://www.parallax.co.uk/~johne
Coventry CV3 4FJ          Mail: johne AT parallax DOT co DOT uk
________________________________________________________________
 Good manners cost nothing, bad manners can cost you everything
________________________________________________________________


- Raw text -


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