Skip to main content

Microsoft Silverlight

Answered Question Unload an assemblyRSS Feed

(0)

artjom_brehhunov
artjom_b...

Member

Member

0 points

2 Posts

Unload an assembly

I have multiple big assemblys which are loaded by main interface on demand ( games, size up to 5MB, 100 -200 games ), I can easily load them, but I didn't find a way to unload. :( As far as I understand it could be solved if I create new AppDomain and load game into it. But unfourtinately I didn't find a way to create new AppDomain in silverlight, am I missing something or how can I do unloading of unnecessary assemplys ?

Yi-Lun Luo - MSFT
Yi-Lun L...

All-Star

All-Star

25052 points

2,747 Posts

Answered Question

Re: Unload an assembly

Hello, there's no way to unload assembly in Silverlight. You can't even achieve that on desktop CLR. But you don't need to worry. The underlying operating system (be it Windows or Mac) is smart enough to handle the memory issues. If one assembly is not used for a period of time, OS will switch it to the virtual memory. Virtual memory is almost unlimited, so you don't need to worry. The inactive assemblies almost occupies no physical memory. For the reason why not supporting assembly unload, please refer to this article.

shanaolanxing - I'll transfer to the Windows Azure team, and will have limited time to participate in the Silverlight forum. Apologize if I don't answer your questions in time.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities