I have an application written in Embarcadero C++ builder XE2 which uses the Excel Office COM server components that ship with the compiler.
It is a simple application that opens a spreadsheet and processes data from one of the spreadsheets.
I am using 3 components (TExcelWorksheet,TExcelWorkbook and TExcelApplication)
The application functions as it should but after the application has run, the task manager reveals that the Excel.exe *32 process is still running and this results in an erro when the application is subsequently run.
The destructor in the main form of my application contains the following code which I am using to close the Excel components but it would appear that this is not working.
I have also tried the following:
Is there a way to fix this ?