@Toemsel92 wrote:
Today I had to debug my application for some hours. Somehow it managed to create a stackoverflow. Finally I was able to track the problem down.
- Load a texture 2D
- Draw the texture 2D
- Dispose the texture 2D
- Load the texture 2D
After step 4, the texture is still disposed, even if we talk about a new object from Content.Load.
My Code: http://collabedit.com/wj363
So I do have a recursive function. But since I load disposed textures again, the recursive function should exit after one loop. (And yes, it does if I do not dispose anything) But if I dare to dispose one texture, it is always disposed, even if I load it again.
Posts: 7
Participants: 5