excel application does not shut down after program exit

  • Thread starter Thread starter G.D
  • Start date Start date
G

G.D

hi,
i create an excel application (MS Excel 2000 installed) in
vb.net. At the end, i close all workbook and quit from
excel aplication. I also set them nothing and call garbage
collection. But excel application does not end, stays
resident in memory
so my applications gives memory error.

Thanks for your help
 
Hi GD
Try this before calling GC.

System.Runtime.InteropServices.Marshal.ReleaseComObject
(objExcelApp)

Kind Regards
Jorge
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top