Hi,
We have implemented our own CustomDictionary class (derived from RadDictionary and implementing the
ICustomWordDictionary interface), and in an attempt to keep the Silverlight memory footprint small, we removed the RichTextBox's default CustomDictionary and called its Dispose method. However, when analyzing the application in a memory profiler, we can see that the original RadIsolatedStorageCustomDictionary (the one we attempted to remove) is still taking up about 2.3 MB. Comparing our application to the unmodified Telerik demo in the profiler, we see that our app has 2 CustomDictionary objects held in memory, while the demo has only 1.
Is there any way to completely remove the default dictionary from memory? The MSDN documentation recommends calling Dispose on IsolatedStorageFile objects before releasing any references to them; I'm already calling Dispose, then DocumentSpellChecker.RemoveCustomDictionary (which returns success), but I don't know what else may hold a reference to this object.
We have implemented our own CustomDictionary class (derived from RadDictionary and implementing the
ICustomWordDictionary interface), and in an attempt to keep the Silverlight memory footprint small, we removed the RichTextBox's default CustomDictionary and called its Dispose method. However, when analyzing the application in a memory profiler, we can see that the original RadIsolatedStorageCustomDictionary (the one we attempted to remove) is still taking up about 2.3 MB. Comparing our application to the unmodified Telerik demo in the profiler, we see that our app has 2 CustomDictionary objects held in memory, while the demo has only 1.
Is there any way to completely remove the default dictionary from memory? The MSDN documentation recommends calling Dispose on IsolatedStorageFile objects before releasing any references to them; I'm already calling Dispose, then DocumentSpellChecker.RemoveCustomDictionary (which returns success), but I don't know what else may hold a reference to this object.