I installed Silverlight 5 VS 2010 tools and a 64-bit development environment for developers, and now I get a System.AccessViolationException when I perform a specific action. Projects are still Silverlight 4, I have not updated them. I checked on another developer's computer (which does not yet have SL5) that the same code still works in SL4. Message: {System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.} {System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.} And it kills IE. This happens after confirming the removal of the ChildWindow ok button, and my breakpoint does not fall into the action event ok (other confirmation confirmations that I have using the same code do not have this problem). Stack trace points to
System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase obj = {Telerik.Windows.Controls.RadWatermarkTextBox}, System.Windows.DependencyProperty property, string s) + 0x6f bytes
VS points to my own RadDateTimePicker style: "BindingDebugging!RadDateTimePickerxaml_2.BindingOperation_1100_562(object BindingState = {System.Windows.Data.Debugging.BindingDebugState}) Line 1 + 0x11 bytes Unknown"
I removed the style from the controls and App.xaml and still get an exception ... This time it points to the Telerik theme "The debugger will ask the user to find the file: Telerik.Windows.Controls.Input;Component\Themes\Office\Black\DateTimePicker.xaml"
My colleague mentioned that he saw the same exception in Silverlight when he posted in some incorrect XAML XMLWriter.
I will add more information when I find it.
Does anyone know what to look for in this particular style file?
EDIT: I saw this now in several places, and not just related to DateTimePicker. I baptized this at http://forums.silverlight.net/p/245247/613094.aspx/1?p=True&t=634600762692144367 .
I also get this exception with this stack trace. This does not happen every time, but when I change the width of the rectangle using RadNumericUpDown, and RaisePropertyChanged ("Width") is called:>
System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase obj = {Telerik.Windows.Controls.PickerTextBox}, System.Windows.DependencyProperty property, string s) + 0x6f bytes System.Windows.dll!MS.Internal.XcpImports.SetValue(MS.Internal.IManagedPeerBase doh, System.Windows.DependencyProperty property, object obj) + 0x2ce bytes System.Windows.dll!System.Windows.DependencyObject.SetObjectValueToCore(System.Windows.DependencyProperty dp, object value) + 0xd6 bytes System.Windows.dll!System.Windows.DependencyObject.SetEffectiveValue(System.Windows.DependencyProperty property = {System.Windows.CoreDependencyProperty}, ref System.Windows.EffectiveValueEntry newEntry = {System.Windows.EffectiveValueEntry}, object newValue = "103") + 0x35 bytes System.Windows.dll!System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.DependencyProperty property = {System.Windows.CoreDependencyProperty}, System.Windows.EffectiveValueEntry oldEntry, ref System.Windows.EffectiveValueEntry newEntry, System.Windows.DependencyObject.ValueOperation operation) + 0xe6 bytes System.Windows.dll!System.Windows.DependencyObject.SetValueInternal(System.Windows.DependencyProperty dp, object value, bool allowReadOnlySet, bool isBindingInStyleSetter) + 0x248 bytes System.Windows.dll!System.Windows.Controls.TextBox.Text.set(string value) + 0x33 bytes Telerik.Windows.Controls.Input!Telerik.Windows.Controls.RadNumericUpDown.UpdateText() + 0x50 bytes Telerik.Windows.Controls.Input!Telerik.Windows.Controls.RadNumericUpDown.OnValueChanged(Telerik.Windows.Controls.RadRangeBaseValueChangedEventArgs e = {Telerik.Windows.Controls.RadRangeBaseValueChangedEventArgs}) + 0xd6 bytes
EDIT # 2: it looks like: http://forums.silverlight.net/p/178858/402638.aspx
EDIT No. 3: I could not reproduce this outside my project. I also did not stop this when commenting on UserControls and code sections. I even removed the binding from XAML and RadNumericUpDown, which I seem to be connected to. I have not deleted our custom styles yet, maybe try something further ... Does anyone know how I can reproduce this and work from there?
EDIT # 4: they fixed it with the latest version according to: http://10rem.net/blog/2012/05/09/silverlight-51104110-released-today