Code Red > AutoLISP (Vanilla / Visual)
A "223" bug in all the versions?
highflyingbird:
--- Code: ---command: (list '(223 5))
((223 5)) --It's ok.
command: (list '(223 5 2))
((223 5 2)) --It's ok
Application ERROR: Bad argument type ---English version
应用程序错误: 参数类型错误 ----Chinese version.
command:(list '(223 5 2 223))
((223 5 2 223))
Application ERROR: Bad argument type ---English version
应用程序错误: 参数类型错误 ----Chinese version.
command:(list '(223 5 2 223 1))
((223 5 2 223 1)) --It's ok
命令: (list '(223 5 2 1 2 1))
((223 5 2 1 2 1)) -It's ok
command: (list '(223 "a" 1))
((223 "a" 1) -It's ok.
--- End code ---
when a list is filled with numbers(all the elements are numbers) and first number is 223 , the count of elements is equal to 3 or 4,then we will meet this bug.
the same bug is "21212" ?
If you haven't this bug,maybe it's caused by operating system,If you have,then it must be a bug of autoCAD.
It's found by xshrimp ,a Chinese.
Kerry:
Interesting bug !!
This also causes an Error on : AC2011 Win7 x64
(list (list 224 100 100))
either at the command line or as a statement in a function,
essentially anytime the statement is evaluated
Kerry:
even this :
--- Code: ---
(defun c:doit ()
(setq x224 224)
(setq xxx (list (list x224 100 100 4)))
)
--- End code ---
I'm surprised this hasn't been noticed previously ... good find !!
--- Quote ---
Command: doit
((224 100 100 4))
Application ERROR: Bad argument type
--- End quote ---
Cider:
You may find this thread interesting:
http://ww3.cad.de/foren/ubb/Forum145/HTML/001297.shtml#000016
It's german, but the conclusion is, the error occurs when the result is presented on the screen.
Wiriting to a file gives no error.
regards
Martin
Kerry:
So, it may be a problem with lists 3 or 4 elements long where the first element is 220 to-> 239.
Navigation
[0] Message Index
[#] Next page
Go to full version