unwind skipped on exception?

Discussion in 'AutoCAD' started by mikedsjr, Apr 16, 2004.

  1. mikedsjr

    mikedsjr Guest

    I'm doing some of the relayering thing right now and I'm trying to do it through entities. I'm curious what this error could represent:

    error: Exception occurred: 0xC0000005 (Access Violation)
    warning: unwind skipped on exception
    error: Exception occurred: 0xC0000005 (Access Violation)

    How would you error protect an add linetype or color like this
    (setq AddedLineType (vla-put-linetype AddedLayerName llinetype)
     
    mikedsjr, Apr 16, 2004
    #1
  2. mikedsjr

    Joe Burke Guest

    Mike,

    We ain't mind readers. Post the code that's tossing the error. Maybe then we can
    help. :)

    Note, the vlisp "put" functions in any form return nil when successful. Otherwise an
    error, often "key not found". So something like your setq example below results in a
    symbol (AddedLineType) which evaluates to nil either way. No help there.

    Joe Burke


    entities. I'm curious what this error could represent:
     
    Joe Burke, Apr 18, 2004
    #2
  3. Mike,

    As Joe suggests, posting more code will help. To answer the last part
    of your post: vl-catch-all-apply will trap the error and allow your
    routine to continue. Below is an example of this.

    (setq test (vl-catch-all-apply 'vla-put-linetype
    (list AddedLayerName llinetype)))
    (if (vl-catch-all-error-p test)
    (princ (vl-catch-all-error-message test))
    (princ "\nLinetype successfull")
    )

    --
    Ken Alexander
    Acad2004
    Windows XP

    "We can't solve problems by using the same kind
    of thinking we used when we created them."
    --Albert Einstein

    do it through entities. I'm curious what this error could represent:
     
    Ken Alexander, Apr 19, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.