Article View: comp.lang.lisp.mcl
Article #647Stack Overflow Error
From: Mark Carlotto
Date: Thu, 21 Jan 1993 20:48
Date: Thu, 21 Jan 1993 20:48
36 lines
1881 bytes
1881 bytes
Subject: Time:3:38 PM
OFFICE MEMO Stack Overflow Error Date:1/21/93
Hi,
I am using the following code to display images stored as PICT resources. By
increasing
the size of the rectangle, I'm able to effectively roam and zoom the image. My
problem
is that if I make the rectangle too large (i.e., I attempt to zoom the image
too much),
the system crashes (type 28 stack overflow error). Any suggestions/fixes?
P.S. The same thing happens when I use your code for displaying PICT images.
P.P.S I have tried to increase the sizes of the stack and heap using
make-application
without success.
(defun DISPLAY-IMAGE-RESOURCE (the-window rfile-name-string pict-num
left top right bottom)
(let (string-ptr resrefnum pict-handle)
(setf string-ptr (#_newptr 256))
(%put-string string-ptr rfile-name-string 0)
(setf resrefnum (#_openresfile string-ptr))
(rlet ((r :rect
:topleft (make-point left top)
:bottomright (make-point right bottom)))
(with-focused-view the-window
(window-select the-window)
(#_framerect r)
(setf pict-handle (#_getpicture pict-num))
(#_drawpicture pict-handle r)
(#_closeresfile resrefnum))))
t)
*******************
Technical Details
Message-ID:
<52-890-00070.2810556010.7464@ctcmac.read.tasc.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!apple!goofy!cambridge.apple.com!ctcmac!Mark_Carlotto@brazil.cambridge.apple.comShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!saimiri.primate.wisc.edu!ames!agate!apple!goofy!cambridge.apple.com!ctcmac!Mark_Carlotto@brazil.cambridge.apple.com From: Mark_Carlotto@b1mac144.read.tasc.com (Mark Carlotto) Newsgroups: comp.lang.lisp.mcl Subject: Stack Overflow Error Message-ID: <52-890-00070.2810556010.7464@ctcmac.read.tasc.com> Date: 21 Jan 93 20:48:27 GMT Sender: owner-info-mcl@cambridge.apple.com Lines: 36 Approved: comp.lang.lisp.mcl@Cambridge.Apple.C0M