Out of memory error with a large image

I have an issue with out of memory error if the image file is too large to handle. I wrote the attached code but it won't catch the exception. Any explanation would be much appreciated. Note: the code was greatly simplified for the sake of the forum.
Thank you.

Geo

PS. I tried the code markers. It caused some corruptions. Not know why.

Answers

Sign In or Register to comment.