Hi!
No way, indeed. Just release them after you specify new image for image control to display. Older images should get out of memory.
I did this once also for grid control displayed arge number of images (different image for different grid row). I had to purge memory as grid scrolls...
>Vlad,
>
>How can I tell if the resources are being releases correctly?
>
>I have a screen that changes image when the user presses the Next or Previous button, is there a way to check that I'm releasing the recourse at the correct point?
>
>Thanks
>Caroline
>
>>Hi!
>>
>>They load automatically and remain cached. You should clear memory from cached images and buffers time to time to clear out resources, so they would never reach limits of VFP deep internals. CLEAR RESOURCES command and sys(1104) function proposed by Al Doman is exactly what you should try. Use them at the fom Destroy event.
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.comICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs
It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.