Memory leak with .NET 1.1 SP1

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My mixed-mode application repeatedly calls various pre-compiled JScript .NET
DLLs which generate different sorts of reports (e.g. through automation).
This results in a continuous increase of the 'Private Bytes' performance
counter of the application and finally ends in a crash after 2-3 weeks of
operation.

The implementation is done via application domains:
pAppDomain = AppDomain::CreateDomain(...);
pAppDomain -> CreateInstanceFromAndUnwrap(...) -> GetType() ->
InvokeMember(...)
pAppDomain -> Unload(pAppDomain);

The 'InvokeMember' calls a function called 'LoadAndExecute' in a managed DLL
(C++) which itself calls the pre-compiled Script DLLs like this:
pAssembly = Assembly -> LoadFrom(...);
pAssembly -> CreateInstance(...) -> GetType() -> InvokeMember(...);

After the Script DLL has completed and returned control, the application
domain for the managed and Script DLLs is unloaded in order to force a
release of all involved resources. The output is as expected but I cannot
understand the continuous memory consumption.

Can anybody help?
Thanks!
 
Hi Lloyd

Thanks for your help. Unfortunately it didn't really help to resolve the
anomaly.
The problem meanwhile was forwarded to Microsoft(R).


Best Regards
A. Wenz
 
Back
Top