Exception Handling in externals

    Aug 18 2015 | 2:07 pm
    Does anyone have advice on exception handling when developing externals?
    as far as I understand it, exceptions would be useful to log and/or deal with the errors that would otherwise cause Max to crash?
    In terms of releasing an external, would one then think that if no exceptions are being encountered, that it is therefore unneccesary to have try...catch loops running within the external?
    what is the effect of compiling with exception handling? Does this mean that if turned off, these blocks of code are not copmiled in the external (treated as comments), so it is possible to develop with exceptions and yet release version without such code?

    • Sep 25 2015 | 8:14 pm
      The Max kernel is written in C, not C++. Therefore, if you write an external with C++ that may throw exceptions it is your responsibility to catch them.