Just a thought. You wouldn't by chance be adding or deleting image handle variables from a function, would you? If so you need to declare the image handle variable name as global.
If that's not it, I don't know.
Cheers,
Andy
If that's not it, I don't know.
Cheers,
Andy