Fixing Memory Leaks in Silverlight Code
I did something bad. I put some sample code for a Silverlight application on my blog that ate memory at a rate of about 2 MB every three seconds.
As soon as I realized it, I fixed the application that I had posted to the Silverlight streaming service. The problem that I encountered was that JavaScript in the browser wasn't determining correctly that memory should be released and this was causing a memory leak. I have attached the code for a non-leaking Matrix dropping characters so you can see a right method and a wrong method.
You can also look at the code to see how to do the following things in Silverlight:
- Create Hyperlinks
- Scale an application to full screen
- Use WebDing fonts for icons.
Comments
- Anonymous
October 08, 2007
PingBack from http://blogs.msdn.com/synergist/archive/2007/09/28/matrix-falling-characters-in-silverlight.aspx