Quantcast
Channel: Silverlight 5 forum
Viewing all articles
Browse latest Browse all 1083

Colossal Memory Chomp - Windows 8 Tablet OOB

$
0
0

Silverlight generally, inexplicably leaks a lot of memory. We've gone to great lengths to stop the obvious leaks by making sure that event handlers and strong references are released at the end of the of the useful life of objects. I have written custom code and used memory profilers to check that our objects are getting finalised and they are.

However, there is one scenario where about 30-40 meg of memory is getting swallowed up when taking photos. This seems to leak on all computers, but it is especially, and noticeably worse on Windows 8 tablets in OOB mode. I can't recreate the huge chomps on my Windows 7 laptop.

I saw this article which might provide some help but it doesn't explain how to turn off automation peers in OOB mode so I'm not sure if this is the issue or not.

http://www.wintellect.com/blogs/sloscialo/silverlight-memory-leaks-and-automationpeers

Anyway, the leak seems to occur around the method
CaptureSource.CaptureImageAsync() or the event CaptureSource.CaptureImageCompleted and it seems to eat more memory when the camera is at a very high resolution (Full HD or more). When I had a look at the memory heap in CLR Profiler I found several arrays of int which is probably the image sample data.

Has anyone experienced this? Any ideas on what to do?





Viewing all articles
Browse latest Browse all 1083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>