SWIG_ConvertPtr接受指针的地址来存储转换。(void*)转换隐藏了错误。请参阅下面的注解:
Select Code Generation under C/C++ branch on the left and select "Multi-threaded Debug (/MTd)" for Runtime Library on the right. Note that in release Configuration this selection is "Multi-threaded (/MT)". Select Preprocessor under C/C++ branch, and modify the Preprocessor Definitions setting...