| Author |
Message |
Torinth
Joined: 26 Oct 2011 Posts: 2
|
Posted: Wed Oct 26, 2011 7:33 pm Post subject: Silverlight GC Handle |
|
|
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 |
|
 |
Torinth
Joined: 26 Oct 2011 Posts: 2
|
Posted: Fri Oct 28, 2011 2:52 am Post subject: |
|
|
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 |
|
 |
Chris.Allen
Joined: 12 Mar 2009 Posts: 443
|
Posted: Fri Oct 28, 2011 10:06 am Post subject: |
|
|
| Excellent point- thank you. |
|
| Back to top |
|
 |
|
|
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