Problem with return value from OnInitialize

Started by roy_043, September 28, 2011, 07:39:32 AM

Previous topic - Next topic

roy_043

Bricscad 11.4.6
OpenDCL  6.0.2.5
Win XP

A strange problem...
While debugging a program I temporarily had an OnInitialize function that would return a specific list. This return value causes Bricscad to freeze up and the dialog in not displayed. The problem is apparently very specific: if you comment-out any of the three list items the problem disappears.

Code (autolisp) Select

(defun c:TestOnInitializeReturn_Main_OnInitialize ()
  '(
    (xyz 4)
    (abc (def))
    (ghi (jkl))
  )
)

owenwengerd

This looks like a Bricscad lisp processor bug (namely an access violation in lispex.dll). I could only reproduce it on 32-bit Windows XP or Windows 7. I didn't see any problem on 64-bit Windows 7. I note that after the dialog fails to display initially, you can run the command again (by typing), and after a project reload error, it will display correctly and work normally. Please report this to Bricsys.
Owen Wengerd (Outside The Box) / ManuSoft