Visual LISP, AutoLISP and General Customization

Reply
Distinguished Contributor
honkinberry
Posts: 122
Registered: ‎05-09-2008
Message 1 of 6 (157 Views)

Access Violation

157 Views, 5 Replies
01-28-2013 09:03 AM

Please tell me I'm not crazy here.

Do you get an Access Violation in 2013 with this?

 

(setq i 1)
(repeat 255 (setq MYLIST (append MYLIST (list (cons i i)))) (setq i (1+ i)))

; now, are you ready? 
!MYLIST 

; or even: 
(print MYLIST) 

; fun, right?

 

*Expert Elite*
Kent1Cooper
Posts: 5,242
Registered: ‎09-13-2004
Message 2 of 6 (148 Views)

Re: Access Violation

01-28-2013 10:11 AM in reply to: honkinberry

honkinberry wrote:

Please tell me I'm not crazy here.

Do you get an Access Violation in 2013 with this?

 

(setq i 1)
(repeat 255 (setq MYLIST (append MYLIST (list (cons i i)))) (setq i (1+ i)))

; now, are you ready? 
!MYLIST 

; or even: 
(print MYLIST) 

; fun, right?

 


I get one even back in good-ol' 2004.  Using !MYLIST at least returns the list looking as you would expect before reporting the access violation.  But (print MYLIST) has the list somewhat jumbled, starting and ending with items rather than with list-opening and list-closing parentheses [which appear in a few places inside], and too long [with a duplicated stretch].

Kent Cooper
Distinguished Contributor
honkinberry
Posts: 122
Registered: ‎05-09-2008
Message 3 of 6 (130 Views)

Re: Access Violation

01-29-2013 08:17 AM in reply to: Kent1Cooper

Thanks, Kent.

So you still hold on to a copy of 2004?!  I can't imagine how quickly that must load.

 

Well I just heard back from ADN -- they just gave me a ridiculous workaround, and didn't even flag it for the product development team.

I'm getting a psychic prediction.... coming in from the fog.....

Dassault is going to crush Autodesk.

 

--J

 

Valued Mentor
martti.halminen
Posts: 317
Registered: ‎12-31-2009
Message 4 of 6 (116 Views)

Re: Access Violation

01-30-2013 02:21 AM in reply to: honkinberry

I get errors when running that from the command line, but not when running in the VLIDE console window (on AcadM 2012).

 

So this is a problem in the command interpreter, not in the underlying Lisp implementation.

 

--

 

 

Distinguished Contributor
honkinberry
Posts: 122
Registered: ‎05-09-2008
Message 5 of 6 (106 Views)

Re: Access Violation

01-30-2013 07:48 AM in reply to: martti.halminen

Still weird though, right?

 

Well, ADN did log a Change Request -- 1491681.

 

--J

 

Distinguished Mentor
_Tharwat
Posts: 574
Registered: ‎07-02-2010
Message 6 of 6 (94 Views)

Re: Access Violation

01-30-2013 10:42 PM in reply to: honkinberry

The same problem here with Cad 2013 .

 

but if I used foreach function to list them , I would get them listed normally .

____________________________________________________
Get learn and learn and practice , to become experienced guy .

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community