Subject: [clisp-list] gdi module problem solved

From: [email-masked]
Date: Mon Nov 11 16:43:02 2002

I determined the cause of the problem.
Following is the incorrect code:
     object p;
     begin_callback();
     p = allocate_fpointer(hWnd);
     pushSTACK(p);
     end_callback();
     begin_callback();
     funcall(O(onCreate),1);
     end_callback();
A stackcheck is done between the pushSTACK and the funcall,
and of course, my fpointer was stored on the stack.
Following is the corrected code:
     object p;
     begin_callback();
     p = allocate_fpointer(hWnd);
     pushSTACK(p);
     funcall(O(onCreate),1);
     end_callback();

However, I still don't understand why linking in my module causes a
failure with SAFETY>1 on entry to clisp.
Dan Stanger