Re: Constant IDE crashes

JP Massar <[email protected]> Wed, 02 Apr 2003 08:18:30 -0800
Newsgroups gmane.lisp.corman
Message-ID <[email protected]>
At 08:19 AM 4/2/03 +0000, lcluke wrote:
>Since I am experiencing constant IDE crashes after one or two
>executions of a small app I am working on, I was wondering if not
>freeing memory that has been allocated using (ct:malloc) has any
>effect on CCL. I.E, I don't free any memory between runs of my app.
>A couple of runs later and the CLL IDE either crashes outright, or
>hangs.
>
>In one case I use a hashable to store C arrays containing OpenGL
>color RGB values. (Q: How do you iterate though each entry in a hash
>table, setting each slot to (ct:free)) ?


Here's a way to iterate through a hash table:

(with-hash-table-iterator (a x)
         (block exit
                 (loop
                 (multiple-value-bind (present key value)
                         (a)
                         (when (null present) (return-from exit nil))
                  (print (list key value))))))


>The application runs fine under XP (actually, in the previous
>version of CLL, the application would run, but then generate an
>exception on exit). Under NT/98, the application runs but the window
>will not close after the program exits. Under 95 the application
>will not run at all.

Corman Lisp is known to crash under Windows '98 using the 2.0[1]
IDE, although your symptoms don't seem very similar to what happens
to me (I always get a hang).  Your problem may be related to the hang
or completely different.

One solution for the hang is to run Corman 2.01 under the Corman 1.5
IDE.  You might want to try this and see if your problem goes away.