My project is really complex and absolutely huge. 335,000 lines of code. 8570 procedures. 18320 controls. 450 files and forms. So eventually I was bound to run into an out of memory issue.

But recently as a user exits the program or exits one form to go back to the main form they are getting an Out of Memory error. Hey... I'd get it if they were opening a new form or even opening the program. But closing a form or closing the program?

Any suggestions?