Jump to content

Program Collapsed when Unigine Vector destructor calls


photo

Recommended Posts

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.

post-2325-0-85120400-1475141878_thumb.png

Link to comment

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

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:

Link to comment
×
×
  • Create New...