| delorie.com/archives/browse.cgi | search |
| Date: | Thu, 17 Feb 2000 23:08:29 +0500 (MVT) |
| From: | Prashant TR <prashant_tr AT yahoo DOT com> |
| X-Sender: | prashant_tr AT midpec DOT com |
| To: | Marcus <mesthlm AT hem DOT passagen DOT se> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: App still hangs on shutdowwn |
| In-Reply-To: | <88ff40$2o9$1@cubacola.tninet.se> |
| Message-ID: | <Pine.LNX.4.10.10002172255280.790-100000@midpec.com> |
| MIME-Version: | 1.0 |
| 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 |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |