delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/04/18:57:23

From: Leath Muller <leathm AT gbrmpa DOT gov DOT au>
Message-Id: <199608042252.IAA09989@gbrmpa.gov.au>
Subject: Interesting problem with gprof...
To: djgpp AT delorie DOT com
Date: Mon, 5 Aug 1996 08:52:35 +1000 (EST)

Hi...

I was writing some code for gfx blitting into multiple 'windows' (basically
just blitting to variable sized screens), and my code uses the crt0 flag
_djgpp_nearptr_enable flag.

When I run the program, I do a manual check to make sure that my pointer to
gfx mem is in the actualy gfx screen area (ie: > *video and < video + 
640*480).

When I try to profile the program, the computer dies! In dos, the whole thing
just locks up, and under win95 the dos box aborts, and I get told to reboot
because the system is unstable.

I assumed this would only happen if wrote to an area of memory no longer
protected (nearptr_enable), but I never have this problem anytime except for
when I attempt to profile...

AND it has only just happened! The only thing that I changed in my code was
to not load a picture from a file and stick it in the background with:
	video[i] = (unsigned char)fgetc(infile);
If I do this, it doesnt crash... :|

Any ideas?

Leathal.

- Raw text -


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