HP3000-L Archives

August 2006, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jeff Kell <[log in to unmask]>
Reply To:
Jeff Kell <[log in to unmask]>
Date:
Tue, 1 Aug 2006 17:51:55 -0400
Content-Type:
text/plain
Parts/Attachments:
text/plain (16 lines)
Steve Cooper wrote:
> This is actually quite common.  My guess is that there is an uninitialized
> variable or perhaps a parameter which is thought to be longer than it
> actually is.  When you do the display first, different junk is left on the stack,
> thereby "initializing" your unitialized variable to a value that does not
> crash the program.
Yes, and having a DISPLAY in the CM code versus not having it causes a
sizeable fixed buffer to be allocated for the DISPLAY.  This shuffles
the relative locations of your variables in the stack, not to mention
making it larger (I've seen DISPLAYs "fix" bounds violations on occasion).

Jeff

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2