Date: Thu, 17 Feb 2000 23:08:29 +0500 (MVT) From: Prashant TR X-Sender: prashant_tr AT midpec DOT com To: Marcus cc: djgpp AT delorie DOT com Subject: Re: App still hangs on shutdowwn In-Reply-To: <88ff40$2o9$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 Thu, 17 Feb 2000, Marcus wrote: > Hi again! > My application seems to STILL hang sometimes on shutdown. And it's because > of the mouse handler. > This is the code I use know: > > To shutdown: > void uninitmouse(void) > { > __dpmi_regs regs; > regs.x.ax = 0xC; > regs.x.cx = 0; > regs.x.es = 0; > regs.x.dx = 0; > __dpmi_int(0x33, ®s); > _go32_dpmi_free_real_mode_callback(&callback_info); > } Put the lines regs.x.ax = 0; __dpmi_int(0x33, ®s); at the beginning of uninitmouse. That should do the job.