Constant IDE crashes
"lcluke" <[email protected]> Wed, 02 Apr 2003 08:19:58 -0000
| Newsgroups | gmane.lisp.corman |
|---|---|
| Message-ID | <[email protected]> |
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)) ?
It's a small OpenGL application that makes use of the SDL library
(www.libsdl.org). I have been working on the FFI definitions to SDL,
on and off for a while now. The FFI definitions run around 54KB,
most of which had to be edited by hand, rewrite C macros etc. to get
past limitations in the parser... e.g...
//SDL_ACTIVEEVENTMASK = SDL_EVENTMASK(SDL_ACTIVEEVENT)
#LISP (progn
(export 'SDL_ACTIVEEVENTMASK)
(defun SDL_ACTIVEEVENTMASK ()
(SDL_EVENTMASK SDL_ACTIVEEVENT)))
... is an example, oh and having to rewrite several hundred key
mappings is always fun...
typedef enum {
/* The keyboard syms have been cleverly chosen to map to
ASCII */
SDLK_UNKNOWN = 0,
SDLK_FIRST = 0,
SDLK_BACKSPACE = 8,
SDLK_TAB = 9,
SDLK_CLEAR = 12,
SDLK_RETURN = 13,
... become ...
#LISP (win:defwinconstant SDLK_UNKNOWN 0)
#LISP (win:defwinconstant SDLK_FIRST 0)
#LISP (win:defwinconstant SDLK_BACKSPACE 8)
#LISP (win:defwinconstant SDLK_CLEAR 12)
#LISP (win:defwinconstant SDLK_RETURN 13)
#LISP (win:defwinconstant SDLK_PAUSE 19)
#LISP (win:defwinconstant SDLK_ESCAPE 27)
...
Anyway, the application displays a multicolored cube in a window,
clicking any mouse button rotates the cube about the Y axis.
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.
If anyone is interested I can email you my SDL FFI definitions, my
expanded Opengl FFI definitions (all of v1.1), and my OpenGL example.
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/xaxhjB/hdqFAA/VygGAA/SyjtlB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, send an email to:
[email protected]
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/