Is it safe to remove an entity in this manner?
Posted: Wed Jan 07, 2015 2:58 am
Question speaks for itself
My server has been throwing Null Reference Exceptions on a particular line similar to the above and was wondering if that was the cause. I'm not too sure because sometimes it works and other times it doesn't. Sounds like race conditions I know - but my code is queued properly in a fiber pool and each call to this code is done through a new class instance, so there should be no unexpected access at any point.
Code: Select all
Entity.Space.Remove(Entity);