浏览代码

Update Importer.hpp (#6235)

- Add doc for out-of-memory exception
- closes https://github.com/assimp/assimp/issues/5173
Kim Kulling 2 月之前
父节点
当前提交
b2afe717d3
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      include/assimp/Importer.hpp

+ 4 - 0
include/assimp/Importer.hpp

@@ -108,6 +108,10 @@ namespace Assimp {
 * allocations and may take some time, so it's better to reuse them as often as
 * possible.
 *
+* If you want to let assimp deal with OutOfMemory-exception make sure that
+* ASSIMP_CATCH_GLOBAL_EXCEPTIONS is set.
+* If this is not the case you need to catch the exception by yourself.
+*
 * If you need the Importer to do custom file handling to access the files,
 * implement IOSystem and IOStream and supply an instance of your custom
 * IOSystem implementation by calling SetIOHandler() before calling ReadFile().