Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Marshal.ReleaseComObject used with intrinsic IIS / ASP objects?

Reply
Thread Tools

Marshal.ReleaseComObject used with intrinsic IIS / ASP objects?

 
 
jason
Guest
Posts: n/a
 
      01-10-2006
hello everyone,

i have had a suppot ticket open with microsoft for some time to
investigate a memory leak issue we are experiencing on our production
web servers. the web servers host both ASP classic and ASP.NET
applications, and the leak is caused, at least in part, by the ASP.NET
appliactions according to our support engineer. this is what he says:

[begin quote]
After a bit of research I was able to determine more on this stack. The
problem here is we are trying to release a reference on an object who's
DLL is already unloaded from the process. Therefore, we cannot find a
direct coorelation to what it is we are trying to free. Based on other
cases where this was observed, the most likely cause here is the use of
the IIS / ASP intrinsic objects in ASP.Net code, without a call to
Marshal.ReleaseComObject in the associated .Net assembly. In order to
resolve this crash, please have your developers review thier .Net
assemblies that may use the IIS / ASP intrinsic objects and make sure
these assemblies make explicit calls to Marshal.ReleaseComObject. This
should resolve the crash that we have seen here, which has not been the
focus of our case thus far. Do you wish to continue attempts to resolve
the memory leak observed previously and if so, do we have an ETA on
when that data may be available?
[end quote]

my question is, which iis / asp intrinsic objects might be candidates
for this? the only intrinsics i can think of that are in use are the
Session and Application objects, but i assumed that those were cleaned
up by the OnEnd events themselves. does anyone know of some other
common objects that require this marshalling release?

thanks,

jason

 
Reply With Quote
 
 
 
 
Bruce Barker
Guest
Posts: n/a
 
      01-10-2006
if you use any com objects (or interop to one), you need to call
Marshal.ReleaseComObject or you will have unmanged memory leaks. this is
becuase the objref will not be released until the GC releases the interop.

-- bruce (sqlwork.com)


"jason" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> hello everyone,
>
> i have had a suppot ticket open with microsoft for some time to
> investigate a memory leak issue we are experiencing on our production
> web servers. the web servers host both ASP classic and ASP.NET
> applications, and the leak is caused, at least in part, by the ASP.NET
> appliactions according to our support engineer. this is what he says:
>
> [begin quote]
> After a bit of research I was able to determine more on this stack. The
> problem here is we are trying to release a reference on an object who's
> DLL is already unloaded from the process. Therefore, we cannot find a
> direct coorelation to what it is we are trying to free. Based on other
> cases where this was observed, the most likely cause here is the use of
> the IIS / ASP intrinsic objects in ASP.Net code, without a call to
> Marshal.ReleaseComObject in the associated .Net assembly. In order to
> resolve this crash, please have your developers review thier .Net
> assemblies that may use the IIS / ASP intrinsic objects and make sure
> these assemblies make explicit calls to Marshal.ReleaseComObject. This
> should resolve the crash that we have seen here, which has not been the
> focus of our case thus far. Do you wish to continue attempts to resolve
> the memory leak observed previously and if so, do we have an ETA on
> when that data may be available?
> [end quote]
>
> my question is, which iis / asp intrinsic objects might be candidates
> for this? the only intrinsics i can think of that are in use are the
> Session and Application objects, but i assumed that those were cleaned
> up by the OnEnd events themselves. does anyone know of some other
> common objects that require this marshalling release?
>
> thanks,
>
> jason
>



 
Reply With Quote
 
 
 
 
jason
Guest
Posts: n/a
 
      01-10-2006
here's a question then.

if i have ASP.NET code, and it's using a .NET class library that was
coded for COM interop so that it could work with another ASP classic
application as well, is that considered a interop'd library? or can an
interop compiled library still be used as .NET by ASP.NET applications?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing intrinsic ASP (not ASP.NET) objects from .NET class Alek Davis ASP .Net 15 11-12-2009 02:17 AM
ASP.NET 2.0 Intrinsic Treeview control errors on a specific machine AndrewF ASP .Net Web Controls 1 07-13-2006 07:40 AM
Intrinsic objects of ASP.Net Alan Ho ASP .Net 5 05-09-2005 02:24 PM
A question regarding ASP Intrinsic objects from the perspective of Fahad Ashfaque ASP General 3 07-27-2004 06:05 AM
trouble utilizing intrinsic objects in custom class =?Utf-8?B?R2xlbm4=?= ASP .Net 0 05-19-2004 01:56 PM



Advertisments