I am having a problem in which a program crashes after 2 to 12 hours due to memory fragmentation. I am exploring several options for trying to solve it. I cannot convert it to a 64-bit application for a couple of reasons, one of which is the heavy use of an old third-party 32-bit ActiveX control for spreadsheet functionality in the UI.

One of the options I am exploring is setting the IMAGE_FILE_LARGE_ADDRESS_AWARE flag in the compiler. If I do this, will I risk intermittent crashes due to the ActiveX control (since presumably it was not compiled with that flag set)?

Thank you for any insight,