We are using UrhoSharp, and are wanting to toggle the Texture of the material to toggle between two images – Normal and Bold.
The first time we toggle the image, it works. The 2nd time, it throws an “AccessViolationError”.
It’s acting as though it’s disposing the Texture that gets replaced, so that we can’t set that Texture again. We aren’t disposing of anything and are holding a reference to both textures, and not releasing the references.
Is there some sort of auto-dispose that occurs in Urho when you swap textures (i.e. if the previous texture is non-null, then maybe it calls Dispose()?).