By Barbara Han
My AddIn is using Intel Threading Building Blocks (version 2.1.2009.201). It seems to load fine but later on crashes the application.
More and more Autodesk products are using the same graphics system, One Graphics System (OGS), which relies on Intel Threading Building Blocks that are available through tbb.dll and tbbmalloc.dll.
Revit has been using the above dll's since release 2010. AutoCAD and so its verticals have been using it since release 2011. Inventor starts using it in release 2012. etc.
If your AddIn is not using the same version of the above dll's as the Autodesk product it is loaded into, then it can cause unexpected results, including crashing the application.
So, please make sure that you are using the appropriate version of these dll's. You can just look in the application folder of the specific product and check the version number of tbb.dll and tbbmalloc.dll. E.g. in case of AutoCAD 2011 and 2012, tbb.dll’s version number is 2.1.2009.325.