08-19-2019, 04:31 PM
Alexandre, sorry for the confusion my post caused. It had nothing to do with memory leaks, and after reading what you wrote, I realized I never tried debugging beyond that point. I turns out the second line in the procedure was a LogFileAppend command, and that caused an Access Violation. But because it was in the FormDestroy of mainform, I never noticed.