Author Topic: What does this error message mean?  (Read 1668 times)

0 Members and 1 Guest are viewing this topic.

HasanCAD

  • Swamp Rat
  • Posts: 1420
What does this error message mean?
« on: December 14, 2010, 04:49:50 AM »
When Run a lisp this error message comes but when repeat the same lisp working good

Code: [Select]
; error: An error has occurred inside the *error* functionbad argument type:
VLA-OBJECT nil

This is erorr subroutine
Code: [Select]
(defun *error* (msg)
  (if oldEcho (setvar "CMDECHO" oldEcho))
  (if oSnp (setvar "OSMODE" oSnp))
  (if oZin (setvar "DIMZIN" oZin))
  (if mSp  (vla-EndUndoMark actDoc))
  (princ msg)
  (princ)
)

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: What does this error message mean?
« Reply #1 on: December 14, 2010, 05:24:23 AM »

The only VLA Object there is  actDoc
Perhaps it is nil.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: What does this error message mean?
« Reply #2 on: December 14, 2010, 05:36:35 AM »

Perhaps add something like this to the *error* function
Code: [Select]
  ;;----- Display error message if applicable _---------------------------
  (cond
    ((not msg))                              ; no error, so do nothing
    ((member (strcase msg t)                 ; if cancel or quit
             '("console break" "function cancelled" "quit / exit abort")
     )
    )
    ((princ (strcat "\nApplication Error: " (itoa (getvar "errno")) " :- " msg))
     ;;----- Display backtrace ------------------------------------------
     (vl-bt)
    )
  )
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

HasanCAD

  • Swamp Rat
  • Posts: 1420
Re: What does this error message mean?
« Reply #3 on: December 14, 2010, 09:01:24 AM »
Thanks Kerry