Jump to content

usage of class EnginePtr


photo

Recommended Posts

in unigine2.7.1

i use engineptr as an member of my class ,but there was a crash over there . 

error usage

blob.png.88ee993d90f333e0ef351a778613cad0.png

 

correct usage

blob.png.5c7db7a11f6b4e4e6779556078e8bea6.png

as you can see the code of UnigineEngine.h

blob.thumb.png.00a67e63e77ff50f7779c639edcc357b.png

the temporary EnginePtr object will shutdown the Engine when it destroyed. which will cause a lot of problems

 

Edited by philip.li
Link to comment
×
×
  • Create New...