Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ASP.NET Page Not Releasing COM Object
Message
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00754450
Message ID:
00755026
Views:
8
Hi Steve,

I waited to respond until I could look at an article on Rick Strahl's site. It was down all yesterday. I wanted to see if he had any information to pass on about your situation. You shouldn't need to call ReleaseComObject. .NET will handle the reference count itself. Here is his article about using VFP COM components. I didn't see anything address your problem.

http://www.west-wind.com/presentations/VfpDotNetInterop/aspcominterop.asp


>Something new on this. I just discovered the ReleaseComObject method. I have it in my aspx page like this:
>
>scmal.StateCentralClass scMal = new scmal.StateCentralClass();
>while (System.Runtime.InteropServices.Marshal.ReleaseComObject( scMal ) > 0) {}
>
>
>in order to reduce the reference count to zero. I am going to experiment with it in my page and see if it makes my VFP objects "go away" any faster than just doing
>
>scmal.StateCentralClass scMal = new scmal.StateCentralClass();
>scMal = null;
>
>
>
>
>Maybe Ed Ruah or Rick Strahl will smell this thread and lend their $.02 as well....
-----------------------------------------

Cathi Gero, CPA
Prenia Software & Consulting Services
Microsoft C# / .NET MVP
Mere Mortals for .NET MVP
cgero@prenia.com
www.prenia.com
Weblog: blogs.prenia.com/cathi
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform