The process is not shutting down because there are handles in your code that have not been properly released. Every time you get a object handle back from an ActiveX function you have to free it with CA_DiscardObjHandle. Make sure you are discarding all the object handles you retrieve.
Also, one piece of bad news. If you are using the excelreport.fp instrument driver, we have verified a couple of problems in its code with freeing these handles. So it may not be a problem in your code, but a problem in the excelreport.fp source. We will be fixing the excel report tool in an upcoming release, but it isn't available yet. So, if this is the case you will have to terminate the process manually until the update is available. There is an SDK function ca
lled TerminateProcess that can be used to do this programmatically.
If you are NOT using the excelreport.fp tool, it would be far better to debug your application and look for handles you aren't discarding.
Best Regards,
Chris Matthews
National Instruments