Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Possible Texture dispose bug

$
0
0

@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.

  1. Load a texture 2D
  2. Draw the texture 2D
  3. Dispose the texture 2D
  4. 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

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles