Mail Archives: djgpp/2005/03/02/00:43:20
-------------------------------1109741492
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit
>> The reason I need this is that whenever I reach a certain line of code,
>> my program crashes. I have identified the exact line in my code on
>> reaching which the program crashed. This line of code itself is not the
>> culprit (no illegal memory access) because when I reduce the
>> application size by deleting the lines before this line, the
>> application does not crash.
can you post that line ? How did you find out that it's this line which
crashes ?
Deleting or adding a line can change the program's behaviour even when
that line is obviously superfluous and does nothing like i=i; or such.
This is because the location where the variables are stored
depends on the length of the program and a boguous memory-access
might work with some program-size but crash with another.
(IMO this is a bug of the compiler BTW , or at least an unfortunate
choice of storing variables )
Guenter.
-------------------------------1109741492
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3DUS-ASCII">
<META content=3D"MSHTML 6.00.2800.1141" name=3DGENERATOR></HEAD>
<BODY id=3Drole_body style=3D"FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY:=20=
Arial"=20
bottomMargin=3D7 leftMargin=3D7 topMargin=3D7 rightMargin=3D7><FONT id=3Drol=
e_document=20
face=3DArial color=3D#000000 size=3D2>
<DIV> >> The reason I need this is that whenever I reach a certai=
n=20
line of code,<BR> >> my program crashes. I have identified the ex=
act=20
line in my code on<BR> >> reaching which the program crashed. Thi=
s=20
line of code itself is not the<BR> >> culprit (no illegal memory=20
access) because when I reduce the<BR> >> application size by dele=
ting=20
the lines before this line, the<BR> >> application does not=20
crash.</DIV>
<DIV> </DIV>
<DIV>can you post that line ? How did you find out that it's this line=20
which<BR>crashes ?<BR>Deleting or adding a line can change the program's=20
behaviour even when<BR>that line is obviously superfluous and does nothing l=
ike=20
i=3Di; or such.<BR>This is because the location where the variables are=20
stored<BR>depends on the length of the program and a boguous=20
memory-access<BR>might work with some program-size but crash with=20
another.<BR>(IMO this is a bug of the compiler BTW , or at least an=20
unfortunate<BR> choice of storing variables )</DIV>
<DIV> </DIV>
<DIV><BR>Guenter.</DIV></FONT></BODY></HTML>
-------------------------------1109741492--
- Raw text -