I had a problem in Delphi 7 which caused a crash at the end of the application. It turned out that I have messed up the Delphi installation, reinstallation of Delphi 7 + Service pack and all is well.
In your case I reccomend to get FastMem and link it into your app. Check what it has to say in debug mode. Problems like this are often double free of the same object.