Strange error that 'fixes itself' by stepping through code

Discussion in 'AutoCAD' started by kidcoach, Jan 26, 2004.

  1. kidcoach

    kidcoach Guest

    I have a set of inter-twining lisp routines that, once in awhile, will throw an error "Too many arguments". If I put a breakpoint in the code and step through (without changing anything), it works fine. Why would it throw the error once, but then when I step through, all of the sudden work?

    Anybody else seen this before?

    Thanks,
    Craig H.
     
    kidcoach, Jan 26, 2004
    #1
  2. kidcoach

    Jim Claypool Guest

    It sounds like you have a function that is getting defined twice, requiring
    a different number of arguments.

    throw an error "Too many arguments". If I put a breakpoint in the code and
    step through (without changing anything), it works fine. Why would it throw
    the error once, but then when I step through, all of the sudden work?
     
    Jim Claypool, Jan 26, 2004
    #2
  3. kidcoach

    kidcoach Guest

    OMG, that's it. And they call me a 'professional'. HA!

    Thanks Jim.

    - Craig
     
    kidcoach, Jan 26, 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.