🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.lang.lisp.mcl
1 messages
1 total messages Started by Mark Carlotto Thu, 21 Jan 1993 20:48
Stack Overflow Error
#647
Author: Mark Carlotto
Date: Thu, 21 Jan 1993 20:48
36 lines
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)

*******************
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads