Out of Memory is a generic error and can occur when the machine does not have enough memory to create objects. Make sure that all objects are properly closed down. If not, this can cause memory leaks which lead to such errors. Be particularly sure to close down objects when using for loops.

Most memory leaks and errors can occur by:
  1. Not closing down top level child objects in a top level collection.
  2. Not closing down top level objects when not using them, especially if that top level object is being called repeatedly.
  3. Insufficient available memory on the machine executing the code.
Although Blackbaud is unable to debug your code to resolve memory issues, here are a few good external articles on memory usage which may be helpful:

Best Practices of Memory Usage

Classic VB - - Memory Leak Prevention and Detection

Disclaimer: We provide links to third-party websites in an effort to help you resolve your issue. We are not responsible for the information on third-party websites, and we cannot assist with implementing the resolution from these websites.