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: 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 ________________________________________________________________