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

RePost of Uncertain Issue w/ Example

7 REPLIES 7
Reply
Message 1 of 8
gsarver
221 Views, 7 Replies

RePost of Uncertain Issue w/ Example

About 6-8 weeks ago I posted a query that I was never really able to track down. However, today I was loading an app in a clean environment and the error returned. I have posted the application below inline with the hopes that someone might be able to shed some light upon it so that I can eliminate this once and for all. Granted for the life of me I can't figure out how this app could be producing this error. Perhaps with the example Robert, John or Jason might pick up on what is causing it.

From Command Line --

Command: (LOAD "I:/Custom Projects/Hold Programs/4PORTS.LSP") ; error: bad
character read (octal): 0

Actual App --

; 4PORTS.LSP
; Produces 4 standard viewports
; Upper left : PLAN (orthogonal) view
; Upper right: RIGHT side view
; Lower left : FRONT side view
; Lower right: ISOMETRIC view rotated 45 deg. around Z-axis
; The AutoCAD 3D Book, Ventana Press, pp.300-301
(defun C:4PORTS()
(setvar "CMDECHO" 0)
(setvar "EXPERT" 3)
(setq UCSF (getvar "UCSFOLLOW"))
(command "VPORTS" "SI" "VPORTS" "4")
(setq VP (vports)
LRPRT (car (nth 0 VP))
URPRT (car (nth 1 VP))
ULPRT (car (nth 2 VP))
LLPRT (car (nth 3 VP)))
(setvar "CVPORT" LLPRT)
(command "VPOINT" "0,-1,0")
(setvar "CVPORT" URPRT)
(command "VPOINT" "1,0,0")
(setvar "CVPORT" LRPRT)
(command "VPOINT" "1,1,1")
(setvar "CVPORT" ULPRT)
(command "VPOINT" "0,0,1")
(setvar "CMDECHO" 1)
(setvar "EXPERT" 0)
(setvar "UCSFOLLOW" UCSF)
(prin1)
)
7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: gsarver

Works fine here, you may want to try localizing your variables:

(defun c:4ports (/ ucsf vp lrprt urprt ulprt llprt)

Have you run this through the debugger in VLIDE in your environment to see
where it crashes at?

--
Kevin Nehls
Message 3 of 8
gsarver
in reply to: gsarver

Kevin,
That's just it. It doesn't crash. AutoCAD and the app runs fine. I am trying to figure out what is calling that error. I had thought that I was missing something in the app. I didn't write it and I really don't use it. This particular error has crept up periodically on some of my users workstations. So when I found it's way to mine I started to get curious. When I said that I loaded it in a clean environment I have a setup that I use for testing my Alpha to Beta applications before I release it to my guinea pig. In this environment there are no 'supplemental' apps loading including Express Tools. This is what has me completely dumb-founded. Where is it coming from....? I also don't typically localize vars until I have finished debugging.
Message 4 of 8
Anonymous
in reply to: gsarver

Well it's not that routine then 😉 Don't know I've never seen it. It's
probably some variable you missed to localize that's getting reused in
another routine.

Searched the VLIDE help file for "octal" and came up with 5 different topics
where "octal" is mentioned. All relating to strings in one way or another.

--
Kevin Nehls
Message 5 of 8
gsarver
in reply to: gsarver

Yes, I kinda looked through that before. I had even thought about where I might be calling a value in a string that could be interpreted as a octal value. I couldn't come up with anything. Robert B. suggested last time that it might be able to add alerts or prompts to my code to step through it. The problem with that is that I am not running anything in this environment with the exception of I have some company standards set in an S::StartUp function and Tony T's AcadXTabs. I guess I will load vlide in an Autodesk template and then load that app and then start a new template. That will show the defuns being loaded into memory. Perhaps that will give me a direction.
Message 6 of 8
Anonymous
in reply to: gsarver

Yeah, debugging vacuums big time. If you find this error post and share
with everyone. If I ever run across it I'll help debug too.

--
Kevin Nehls


"gsarver" wrote in message
news:f173a28.3@WebX.maYIadrTaRb...
> Yes, I kinda looked through that before. I had even thought about where I
might be calling a value in a string that could be interpreted as a octal
value. I couldn't come up with anything. Robert B. suggested last time that
it might be able to add alerts or prompts to my code to step through it. The
problem with that is that I am not running anything in this environment with
the exception of I have some company standards set in an S::StartUp function
and Tony T's AcadXTabs. I guess I will load vlide in an Autodesk template
and then load that app and then start a new template. That will show the
defuns being loaded into memory. Perhaps that will give me a direction.
Message 7 of 8
deepcastle
in reply to: gsarver

hi,

I just tried the routine here Win 98 / 2000i, works fine here. Ran it thou VLIDE too, no problem
Message 8 of 8
gsarver
in reply to: gsarver

Thanks Kevin, once I trace down what initiates the error I will indeed post. A while back I did a search of the NG and found a few posts that have the Octal Error in them so it is a recurring error, but not a real common one. I switch from my Alpha test environment to my Program Development environment this morning and the error went away. That is going to allow me to narrow down what is provoking it. My initial suspicions is that something in the Express Tools has caused it. The workstations that this typically happens on are ones that have v1-3 of the tools loaded. However, the workstations that haven't had this error occur have v1-9 of the tools installed. I will keep pluggin' away.

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

Post to forums  

Autodesk Design & Make Report

”Boost