Strange memory leak in silverlight 5 -


i'm facing problems silverlight application.

my application looks image manager. can open images, edit, view, etc.

my problem when add images , after remove these images, memory doesn't return same amount used before add these images. if repeat these operations (add images , after remove these images), memory doesn't stop going up.

why it's happen?

i create new silverlight 5 project recreate scenario, test codes , try find happening.

in new project have stackpanel , 3 buttons these actions:

1- add 1000 buttons in stackpanel;

2- remove children of stackpanel;

3- call gc.collect;

i call same actions repeatedly: add(1), remove(2), call gc(3)

after repeated several times same action (add , remove). observed same result of first application, memory doesn't stop going up. after call gc.collect memory not freed. don't what's happen. possible memory leak of silverlight?

is pc 'tablety'?

silverlight automation kicks in if have automation client running on computer. common being:

  • tablet pc input service (in other words, 'tablet like' pcs)
  • automated testing tools
  • screen readers (and other accessability software)

this makes silverlight complete mess , causes number of bugs, , almost-always makes leak crazy.

i disabled automation setting parameter in html:

<param name="windowless" value="true" /> 

you can read more here: silverlight + mvvm + bindings = memory leaks?


Comments

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -