Jump to content

usage of class EnginePtr


photo

Recommended Posts

Posted (edited)

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
Posted

Hi, philip.li!

Thank you for your message. We plan to revise our ownership system. But this will happen no earlier than SDK v3.0.

Best regards,
Alexander

×
×
  • Create New...