Date: Wed, 16 Feb 2000 08:58:27 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Marcus cc: djgpp AT delorie DOT com Subject: Re: SV: System hangs when I exit my program In-Reply-To: <88d197$8q8$1@cubacola.tninet.se> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 16 Feb 2000, Marcus wrote: > void uninitmouse(void) > { > __dpmi_regs regs; > regs.x.ax = 0xC; > regs.x.cx = 0; > regs.x.es = 0; > regs.x.dx = 0; > _go32_dpmi_set_protected_mode_interrupt_vector(0x33, &old_mouse_handler); > _go32_dpmi_free_real_mode_callback(&mouse_handler); > ok_mouse = false; > } You need to call Int 33h before calling _go32_dpmi_set_protected_mode_interrupt_vector to remove the hook.