Inventor provides a basic error handling mechanism for use with both the optimized and debugging versions of Inventor. As shown in SoError Class Tree , three classes are derived from the base class, SoError. Read errors occur during reading of an Inventor file. Memory errors occur when an application runs out of memory. Debugging errors occur as the result of a programming error. Most debugging errors are generated only in the debugging version of Inventor and are not checked in the optimized version. A correct application does not generate any debugging errors. In the beginning, it's a good idea to link with the debugging version of Inventor to ensure that your program is correct. Later, when no errors are generated, you can switch to the optimized version.
For example, suppose Inventor encounters an unrecognized field name when it is reading a file. The following steps occur: