delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/01/10/11:04:39

Date: Mon, 10 Jan 2000 12:23:01 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Gary Smith <gwme AT kagi DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Moving Error
In-Reply-To: <85a6ll$113$1@nclient11-gui.server.virgin.net>
Message-ID: <Pine.SUN.3.91.1000110122245.6643G-100000@is>
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 Sun, 9 Jan 2000, Gary Smith wrote:

> I have written a program using the latest Allegro WIP and VC5. The program
> compiles OK with no error messages or warnings.  However when I run it it
> terminates.  I traced the termination point to a blit command.
> By remming this command out the program worked.
> 
> After this I went through the program and removed a few remark lines (ie
> // ).  Now the program terminates at another blit command elsewhere in the
> program.  The termination point seems to vary when code is added or removed
> from the program, but always terminates at a blit command.

By ``terminates'' do you mean it crashes with registers' dump and a
call stack traceback?  If so, please post here the complete crash
message printed when the program ``terminates''.  There's a wealth of
important information there that could help us give you much more
intelligent advice.

Generally, what you describe could be a symptom of overwritten stack:
some function that you call *before* the blit function overwrites the
stack and garbles local variables and return addresses.  This garbage
eventually creeps into the EBP or ESP register, and once some code
(probably your blit function) uses these registers to access the
stack, you get a GPF.

For more details about these issues, including debugging hints and how
to read the crash message, can be found in section 12.2 of the DJGPP
FAQ list; please read it.

- Raw text -


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