Red Gate forums :: View topic - Silverlight GC Handle
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
ANTS Memory Profiler 7
ANTS Memory Profiler 7 forum

Silverlight GC Handle

Search in ANTS Memory Profiler 7 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Torinth



Joined: 26 Oct 2011
Posts: 2

PostPosted: Wed Oct 26, 2011 7:33 pm    Post subject: Silverlight GC Handle Reply with quote

Hi,

We are using ants memory profiler 7 to find leaks in a silverlight application.

We have identified a few cases where we have growing instance issues (instances continue to grow in numbers and stay around) but they all point back to GC Handle.

Ive done some research and generally this means its being held by native memory. We dont do anything at all with native memory and cant figure out what is causing these items to stick around and grow.

I also cannot hardly find any information on GC Handle and silverlight.

Is there any information that could help us figure out how to fix these issues? Could they be memory leaks in silverlight itself?

Thanks
Back to top
View user's profile Send private message
Torinth



Joined: 26 Oct 2011
Posts: 2

PostPosted: Fri Oct 28, 2011 2:52 am    Post subject: Reply with quote

Ive actually found the specific issue i was seeing a leak that was happening when the object holding onto it was a GC Handle

If you use an EventTrigger from System.Interactivity that uses an event that native memory can have access too such as mouse click it can cause a leak.

So if you arent working directly with any native memory objects but native memory is holding onto your objects look to see if there is anything that is listening to things like mouse clicks and keyboard events or anything else that requires native memory to interact with it.
Back to top
View user's profile Send private message
Chris.Allen



Joined: 12 Mar 2009
Posts: 546

PostPosted: Fri Oct 28, 2011 10:06 am    Post subject: Reply with quote

Excellent point- thank you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group