11-21-2014, 02:40 PM
Hi -
Is there any mechanism that catches all of the errors in a thread to prevent the crash of an *.exe generated by QM? I know that I can put an 'err' to catch an error from a particular function call - but I was hoping that there would be something like a try{}catch{} block. I want to move my codebase to a consistent robust style and I'm looking for suggestions.
If I use an atend to log the errors - say something like
... does this prevent error from crashing?
Or is it safer to have the routines invoked by a 'mac' have the following structure?
so that the thrown errors don't kill the compiled *.exe.
In general I believe that errors should be handled locally - this is just for the unexpected ones until we fix the issue.
Is there any mechanism that catches all of the errors in a thread to prevent the crash of an *.exe generated by QM? I know that I can put an 'err' to catch an error from a particular function call - but I was hoping that there would be something like a try{}catch{} block. I want to move my codebase to a consistent robust style and I'm looking for suggestions.
If I use an atend to log the errors - say something like
... does this prevent error from crashing?
Or is it safer to have the routines invoked by a 'mac' have the following structure?
so that the thrown errors don't kill the compiled *.exe.
In general I believe that errors should be handled locally - this is just for the unexpected ones until we fix the issue.