OpenDCL Forums

OpenDCL => Runtime/AutoLISP => Topic started by: roy_043 on September 28, 2011, 07:39:32 AM

Title: Problem with return value from OnInitialize
Post by: roy_043 on September 28, 2011, 07:39:32 AM
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))
  )
)
Title: Re: Problem with return value from OnInitialize
Post by: owenwengerd on September 28, 2011, 12:15:13 PM
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.
Title: Re: Problem with return value from OnInitialize
Post by: roy_043 on September 29, 2011, 12:23:02 AM
Quote from: owenwengerd on September 28, 2011, 12:15:13 PMPlease report this to Bricsys.
Done.