(04-11-2015, 07:16 PM)MangaD Wrote: If I start scrolling through the frames with the up/down arrow, the program will run out of memory and an unhandled exception is thrown.
I do not know how memory handling is done in C#, but there seems to be memory leaks here. Make sure the objects are deleted when no longer needed, though this might slow down performance since the frames that were loaded already must be loaded again. I guess it is memory vs performance.
I've tried to do the same, but problem did not occurred. You have to buy more RAM xD (just joking)
To solve this- do You think that 11 frames loaded in same time would be enough?
My idea would be like:
5 (for going up).... current ....5 (for going down)
(moving up or down is loading the new frame, and unloads the last one)
I will try to look into code (not earlier then in next weekend), maybe we could solve this problem.