Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Access Violation

5 REPLIES 5
Reply
Message 1 of 6
honkinberry
308 Views, 5 Replies

Access Violation

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?

 

5 REPLIES 5
Message 2 of 6
Kent1Cooper
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, AIA
Message 3 of 6
honkinberry
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

 

Message 4 of 6

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.

 

--

 

 

Message 5 of 6

Still weird though, right?

 

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

 

--J

 

Message 6 of 6
_Tharwat
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 .

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost