Jump to content

Delete Entity with velocity crash [project included]


tjheldna
 Share

Recommended Posts

Hi Josh,

 

Just starting a new thread as the other is locked.

 

Here is a project where Releasing an entity with a velocity crashes the program In my project it doesn't matter where it do it it always causes a crash. I did the project really quickly, so hope it's OK (or not so OK as it should be!).

 

Cheers!

 

 

trindieprod.png?dl=0spacer.png?dl=0steam-icon.png?dl=0twitter-icon.png?dl=0spacer.png?dl=0
Link to comment
Share on other sites

if (box->isrenderable) box->Release();

 

This is very wrong because you are accessing a member on a pointer that has been deleted. The correct way to do this is check to see if box is NULL (and set the pointer to NULL after it is first released).

 

 

Link to comment
Share on other sites

  • 3 weeks later...

Thank you for this excellent bug report. This allowed me to find and fix a problem I did not know existed. :)

 

A new update will be posted next week that fixes this and other issues.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...