Page is loaded in the memory when you burn the annotations on image. 70 pages are loaded in the memory when you burn the annotations on 70 images. I think your computer does not have enough memory for storing your images in memory. Please monitor the memory usage and save the burned images to the file for freeing the memory.

Thank you for information. Could you send us a working project (with data), which allows to reproduce your problem? If yes, please send your project to support@vintasoft.com. If no, please check the memory usage, here is code snippet:

Hi, here's the memory usage. The TIF file is classified so I can't give it to you. This is a 160 page high res TIF file with annotation on at least 20 pages. This one did not crash. I forgot to mention that the application is 32-bit. 64-bit is not an option because we are still supporting XP in the workplace.

The AnnotationViewController.BurnAnnotationCollectionOnImage method burns annotations on image, for doing this method loads image into the memory. In your code you are burning annotations on each saving image, i.e. you are loading all images with annotations into memory and as a result you can have the OutOfMemoryException when all available memory will be used.

For solving the problem you need burn annotations on image and dispose image when image is not necessary any more.

Here is code that allows to burn annotations on images, save images to a TIFF file and prevent the OutOfMemoryException: