Unmanaged memory issue by modules "agcore" and "npctrl".

Memory profiling for .NET developers

Unmanaged memory issue by modules "agcore" and "npctrl".

Postby ALSC » Tue Apr 29, 2014 1:29 pm

We have a Silverlight 5 application in which we have a memory leak. As far as we can see in the ANTS memory Profiler, the leak is in the unmanaged code, and expecially the two modules acgore and npctrl which increases significantly during the running time of the application.
From the profile result it is hard to see excatly why these increase in memory.
Also searching the web has not providing much inside on these two modules and what their role is. So has anyone any idea about what they do and where a possible memory leak can happen due to these?

Allan Christensen
Systems developer
Posts: 2
Joined: Tue Apr 29, 2014 1:01 pm

Postby jessica.ramos » Wed Apr 30, 2014 4:33 pm

Hi there,

Thanks for your post!

You've probably found this from your web searches, but what I've found is that agcore.dll is the Silverlight core dll used mostly for drawing, and npctrl.dll is the plugin used to host the Silverlight runtime in a browser and interact with it.

Have you tried looking at the class list to see which classes are using the most unmanaged memory? That will hopefully shed light on the high usage of the Silverlight libraries.
Jessica Ramos
Technical Support
Red Gate Software Ltd.
Posts: 542
Joined: Mon Apr 23, 2012 12:13 pm

Postby ALSC » Thu May 01, 2014 7:08 am

Thanks for the quick reply.
Yes I looked at the Class list and here i could see that the class holding most of the unmanaged code is
Class name: NaticeObjectSafeHandle

Unfortunatly i cannot find much information about this class, and if i go to the Instance categorizer or the Instance retention graph, I cannot determine the cause of problem since the graphs are just to complex.

Any idea what this class is doing?
Posts: 2
Joined: Tue Apr 29, 2014 1:01 pm

Return to ANTS Memory Profiler 8

Who is online

Users browsing this forum: No registered users and 0 guests