in Search

MSX DLL is reporting a floating point invalid operation....

Last post 07-13-2009, 9:40 by wabbit. 3 replies.
Sort Posts: Previous Next
  •  07-12-2009, 9:52 30122

    MSX DLL is reporting a floating point invalid operation....

    I am getting this error reported back from a DLL that I have written but only if the DLL is run outside the Borland IDE.

    What are all of the possible causes of this error ??

    regards
    david


    regards David
    http://www.compuvision.com.au
  •  07-12-2009, 20:33 30123 in reply to 30122

    Re: MSX DLL is reporting a floating point invalid operation....

    There are many conditions which will generate these errors.

    Two of the usual suspects are trying to do an array comparison with values which have not been properly initialised and hence you're trying to compare a float to a garbage value; or, depending on the version of the compiler, these errors can be thrown when performing mathematical operations on unlike datatypes when one of them is a float.

    Use a try-catch block to isolate the error, or run through using the debugger and check all the values used in every comparison/operation.



    wabbit Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

  •  07-13-2009, 8:53 30127 in reply to 30123

    Re: MSX DLL is reporting a floating point invalid operation....

    Thanks wabbit.

    You have given me a few ideas ;)

    regards
    david

    regards David
    http://www.compuvision.com.au
  •  07-13-2009, 9:40 30129 in reply to 30127

    Re: MSX DLL is reporting a floating point invalid operation....

    As always : if you need more assistance, post your troublesome code and someone should be able to help.  (If you want my help -- be quick as I am going for a short holiday in a couple of days)


    wabbit Big Smile [:D]


    "The question of whether a computer can think is no more interesting than the question of whether a submarine can swim."
    Edsgar W. Dijkstra

     

    MS: 6.52 EOD, 7.x EOD, 8.0 PRO, 9.2 PRO w/QC, 10 PRO w/QC C, 11 PRO w/QC & MDK
    For custom MetaStock programming : http://www.wabbit.com.au
    My SkyPE status :
    My SkyPE account : wabbit.com.au

View as RSS news feed in XML