Texture manager is responsible for textures is loads and unloads
Why are you recreating the texture manager and then asking it to unload a bitmap it has no knowledge of. A newly created manager is empty. Also even if you did not recreate it you empty it if it is valid so either way it's incorrect
(Unless a great deal of your code is missing )you never request a texture from the newly created manager but request it to unload whatever is in myArray. You Generally create a texture manager only one time. Load and unload from the same manager.
My Channels: 2D API Framework Presentation: https://owner.roku.com/add/2M9LCVC
Updated: 11-11-2015 - Completed Keyboard interface
The Joel Channel ( Final Beta )