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?
			
			
									
									Unxpected result of deleting sprites
- rbytes
 - Posts: 1338
 - Joined: Sun May 31, 2015 12:11 am
 - My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
 - Flag: 

 - Contact:
 
Unxpected result of deleting sprites
The only thing that gets me down is gravity...
						- Mr. Kibernetik
 - Site Admin
 - Posts: 4794
 - Joined: Mon Nov 19, 2012 10:16 pm
 - My devices: iPhone, iPad, MacBook
 - Location: Russia
 - Flag: 

 
Re: Unxpected result of deleting sprites
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.
			
			
									
									
						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.
- rbytes
 - Posts: 1338
 - Joined: Sun May 31, 2015 12:11 am
 - My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet - Location: Calgary, Canada
 - Flag: 

 - Contact:
 
Re: Unxpected result of deleting sprites
I have posted this as a bug report.
			
			
									
									The only thing that gets me down is gravity...
						- Mr. Kibernetik
 - Site Admin
 - Posts: 4794
 - Joined: Mon Nov 19, 2012 10:16 pm
 - My devices: iPhone, iPad, MacBook
 - Location: Russia
 - Flag: 

 
Re: Unxpected result of deleting sprites
Thank you!ricardobytes wrote:I have posted this as a bug report.