expt - Fatal Error

Discussion in 'AutoCAD' started by Martin Wright, Feb 26, 2004.

  1. I have code that has worked for 6 years.
    After upgrading to AutoCAD 2004 I often, not allways, get a fatal error.
    The error occurs on the function (expt d1 2)

    during debugging I have checked the following
    d1 = 400.0

    (type d1) = REAL

    (expt d1 2) = ; error: Exception occurred: 0xC0000093

    Any help would be much appreciated

    Martin Wright
     
    Martin Wright, Feb 26, 2004
    #1
  2. Tony Tanzillo, Feb 27, 2004
    #2
  3. Definetly
    It is not the parameters it is something to do with the way the value is
    calculated which is
    (distance p1 p2) where p1 and p2 are point lists from entities.
    I have written my own function to replace expt and fixed the problem.
    It did not allways give the error but was consitent when processing data
    from a particular entity.
    martin
     
    Martin Wright, Feb 27, 2004
    #3
  4. This error cannot be reproduced in a demonstration.
    I thought that others may have come across the problem and found a solution
    Martin
     
    Martin Wright, Feb 27, 2004
    #4
  5. Martin Wright

    ECCAD Guest

    Martin,
    Is it possible that d1 (may be negative ?)
    Bob
     
    ECCAD, Feb 27, 2004
    #5
  6. D1 is not negative. I have confirmed this by printing to tthe screen with
    lofgileon.
    Also D1 is obtained by the distance function, between 2 points and as far as
    I know this is allways positive
    Martin Wright
     
    Martin Wright, Feb 27, 2004
    #6
  7. Martin Wright

    ARDawe Guest

    We've noticed the same thing on multiple machines using oem2002 and functions that haven't changed for ages.

    Seeing this post, I changed (expt A 2) to (* A A) which seems to solve the problem.

    We're using W2K and XP, both with various service packs.

    The only thing that I know that we did to the machines that experienced the problem was to install the Office 2003 upgrade (pushed out by central IT).
     
    ARDawe, Mar 7, 2005
    #7
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.