zhang.jian_bin Posted September 29, 2016 Share Posted September 29, 2016 This code segment was in the world logic, when this function returns, the Unigine::vector's destructor will cause the program collapsed. This collapsed happens in X64 debug, in X86 debug it is OK. why? and i didn't change any project settings in visual studio. Link to comment
zhang.jian_bin Posted September 29, 2016 Author Share Posted September 29, 2016 Well, I solved this problem: Unigine::Vector< Unigine::Ptr< Unigine::Object > > cSelVec(2); Set the capacity of vector object more than one will avoid collapsed in X64. This bug only happens when size == capacity == 1 Link to comment
silent Posted September 30, 2016 Share Posted September 30, 2016 Hi Zhang, It seems that we can't reproduce such behavior with latest 2.3.1 SDK. You can create empty project via SDK Browser and replace AppWorldLogic.cpp to the attached file. Could you please check if you have crash in that scene? Thanks! AppWorldLogic.cpp How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN Link to comment
Recommended Posts