delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/09/18:18:04

From: Shawn Hargreaves <Shawn AT talula DOT demon DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: restoring an allegro app.
Date: Sat, 9 May 1998 22:48:23 +0100
Organization: None
Message-ID: <PLO5yQAn8MV1EwF7@talula.demon.co.uk>
References: <894722214 DOT 10345 DOT 0 DOT nnrp-01 DOT c1edaebc AT news DOT demon DOT co DOT uk>
NNTP-Posting-Host: talula.demon.co.uk
MIME-Version: 1.0
Lines: 30
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gillepileptic writes:
>It all works okay until I want to re-enter my programme after GB97 has 
>finished:  I can get the screen redrawn, the mouse pointer showing etc, 
>but it's just locked: The mouse won't update.  I know it's actually 
>going through the main programme loop, because the ESC key still works 
>to exit.

Doing a complete shutdown and then reinit of the entire Allegro system
is semi-untested ground: it should work, but not many people do this so
there are likely to be subtle bugs.

The grabber actually does just such a thing when you use the "Shell
Edit" command to invoke an external editing tool: does that work on your
machine? If so, you may wish to take a look at the code used for that.

Alternatively, try to post a short example of some code which is
supposed to shut down Allegro, invoke this program, and then reinit the
library. Nobody can tell you how to fix the code unless you show us what
you are currently doing...

>Also, a few quickies:
>1) My executable is nearly 500k!

See the djgpp FAQ section 8.15, and the "Reducing your executable size"
section of the Allegro docs.


--
Shawn Hargreaves - shawn AT talula DOT demon DOT co DOT uk - http://www.talula.demon.co.uk/
"Miracles are nothing if you've got the wrong intentions" - Mike Keneally

- Raw text -


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