How to reset error codes?


  • My program often crashes on a call to

        int i = DoPreparePrinting(pInfo);    

    but not always.  I think it is caused by an unhandled exception deep inside the code, perhaps in the Fortran section.  But everything else works, so any errors are not serious.  And I don't know what they are anyway.

    This only crashes in the release version, not in the debug -- so I can't debug it.

    Is there a simple way I can reset all error flags to normal before I call this?  That might work.

    Wednesday, November 06, 2013 6:58 PM


  • Hi,

    If you are working with Visual Studio, we can control whether the exception is thrown during running through coding, but there is no settings to set the errors to normal.

    You could submit this feature request:

    The Visual Studio product team is listening to user voice there. You can send your ideas/suggestions there and people can vote.

    Thanks for your understanding.

    Best regards,

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 08, 2013 7:27 AM