Hi
I'm using the TeeChart8.ocs in a .net application but have quite some difficulties in releasing the object again:
When doing:
TChart chart = new TChartClass();
System.Runtime.InteropServices.Marshal.ReleaseComObject(chart);
chart = null;
procexp.exe still reports that the application is using it. What can I do to release the com object?
Best Regards
Franz Thomsen
Releasing ActiveX in .Net application
-
- Newbie
- Posts: 1
- Joined: Tue Mar 11, 2008 12:00 am
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Hi Franz,
You could try using this:
http://msdn.microsoft.com/en-us/library/xe0c2357.aspx
But you should be very carefull using this method. You may need to read up on how .NET Framework handles memory.
You could try using this:
http://msdn.microsoft.com/en-us/library/xe0c2357.aspx
But you should be very carefull using this method. You may need to read up on how .NET Framework handles memory.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |