Unxpected result of deleting sprites
Posted: Fri Dec 11, 2015 4:31 pm
I didn't want to classify this as a bug since there may be a logical reason for it. I am working on a sprite-based slideshow routine. I scan portions of an image into sprites and fly them on screen in various patterns to form the first image. The next slide is an image loaded behind the sprites. I fly the sprites off in various patterns to reveal it. I continue alternating these two routines through the slideshow (so far just 8 slides) and then loop back to start it again.
I thought it would be a good idea to delete the sprites just before recreating them to scan another image. But I found that the slideshow would unexpectedly crash to the icon screen after it played the 8 images, looped back to the start and redisplayed the first two images. So after trying a few other fixes, I commented out the sprite delete commands. Now I can keep the slideshow running as long as I want.
Could this be a memory leak related to the sprite delete command?
I thought it would be a good idea to delete the sprites just before recreating them to scan another image. But I found that the slideshow would unexpectedly crash to the icon screen after it played the 8 images, looped back to the start and redisplayed the first two images. So after trying a few other fixes, I commented out the sprite delete commands. Now I can keep the slideshow running as long as I want.
Could this be a memory leak related to the sprite delete command?