Page 1 of 1

Unxpected result of deleting sprites

Posted: Fri Dec 11, 2015 4:31 pm
by rbytes
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?

Re: Unxpected result of deleting sprites

Posted: Fri Dec 11, 2015 4:40 pm
by Mr. Kibernetik
Probably yes.
If you make a bug-revealing code then please post it as a bug report.
Crashing is almost always a lack of memory or a memory leak.

Re: Unxpected result of deleting sprites

Posted: Fri Dec 11, 2015 6:08 pm
by rbytes
I have posted this as a bug report.

Re: Unxpected result of deleting sprites

Posted: Fri Dec 11, 2015 6:09 pm
by Mr. Kibernetik
ricardobytes wrote:I have posted this as a bug report.
Thank you!