Use AcDbHostApplicationServices::fatalError() or acrx_abort() Rather Than exit()

Level

Recommendation

Applies to

ObjectARX, .NET and ObjectDBX modules

When aborting, use AcDbHostApplicationServices::fatalError() or acrx_abort() instead of a direct or indirect call to exit(). This will allow AutoCAD and other ObjectARX applications to recover as much work as possible. Always use API calls rather than system calls.