Results 1 to 3 of 3

Thread: matherr

  1. #1
    Join Date
    Dec 2009
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    13

    Default matherr

    I'm converting old math routines to be consistent with the multiple compilers made possible with Qt, but haven't found any documentation for either "matherr" or "signal.h". Exception handling isn't part of Qt, but some form is a part of all detailed math calculations. Has anyone got a good reference, or any previous experience? Thanks

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: matherr

    This has nothing to do with Qt. There's nothing stopping you using standard C++ exception handling.

  3. #3
    Join Date
    Dec 2009
    Posts
    47
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    13

    Default Re: matherr

    I used C++ exceptions, but had included a Microsoft specific handler for both matherr and the "signal" func.
    Qt Code:
    1. void __cdecl HandleMathError(int sig, int subcode);
    To copy to clipboard, switch view to plain text mode 
    In making the change, I was curious if Qt had code in this area. Guess not. Thanks.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.