Hi Team,
I am using Telerik control for the past 4 years for silverlight. But today I am facing an issue using RadWindow in chrome lastest version.
I had a popup for which I am using Telerik RadWindow and in the Content I am passing RadHtmlPlaceholder object.
Case 1: If the RadHtmlPlaceholder contains a plain html page then it works fine.
Case 2: If an Silverlight Page is included in RadHtmlPlaceholder it loads properly first time, but when I click for the second or third time then the Chrome browser crashes
I am working with
Silverlight Version : 5
Telerik : 2011.3.1220.1040
Operating System : Windows 7
Sample Link: https://www.dropbox.com/s/2rvxoryq4b5fbpi/TelerikRadHTMLControlSample.zip
MainPage.XAML.cs
public partial class MainPage : UserControl
{
RadHtmlPlaceholder radHtmlPH;
public MainPage()
{
InitializeComponent();
radHtmlPH = null;
radHtmlPH = new Telerik.Windows.Controls.RadHtmlPlaceholder();
radHtmlPH.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
radHtmlPH.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
// this will work fine
//radHtmlPH.SourceUrl = new Uri("http://www.telerik.com/support.aspx");
// This link crashes second time
radHtmlPH.SourceUrl = new Uri("http://www.wynapse.com/Silverlight/Telerik/PersistenceFrameworkDataToAString.aspx");
}
RadWindow radWinNormal;
private void Button_Click(object sender, RoutedEventArgs e)
{
if (radWinNormal != null)
radWinNormal.Content = null;
radWinNormal = new RadWindow();
radWinNormal.Width = 500;
radWinNormal.Height = 500;
radWinNormal.Content = radHtmlPH;
radWinNormal.ShowDialog();
//PlaceHolder.Children.Add(radHtmlPH);
}
}
MainPage.XAML
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Content="Place Holder" Click="Button_Click"></Button>
</Grid>
Error found while debugging
Unhandled exception at 0x0249f8cf in chrome.exe: 0xC0000005: Access violation writing location 0x00000039
{System.InvalidOperationException: SetProperty failed.
at System.Windows.Browser.ScriptObject.SetProperty(String name, Object value)
at Telerik.Windows.Controls.RadHtmlPlaceholder.UpdateContent()
at Telerik.Windows.Controls.RadHtmlPlaceholder.OnSourceUrlChanged()
at Telerik.Windows.Controls.RadHtmlPlaceholder.OnSourceUrlPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry,
ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.RadHtmlPlaceholder.set_SourceUrl(Uri value)
at MedTegra.Views.Shared.ucHtmlPlaceHolderReport.radHtmlPH_Loaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32
flags)}
Please revert back urgently, as our product is live and we are facing problems due to this.
Regards,
Nilesh Anchan
I am using Telerik control for the past 4 years for silverlight. But today I am facing an issue using RadWindow in chrome lastest version.
I had a popup for which I am using Telerik RadWindow and in the Content I am passing RadHtmlPlaceholder object.
Case 1: If the RadHtmlPlaceholder contains a plain html page then it works fine.
Case 2: If an Silverlight Page is included in RadHtmlPlaceholder it loads properly first time, but when I click for the second or third time then the Chrome browser crashes
I am working with
Silverlight Version : 5
Telerik : 2011.3.1220.1040
Operating System : Windows 7
Sample Link: https://www.dropbox.com/s/2rvxoryq4b5fbpi/TelerikRadHTMLControlSample.zip
MainPage.XAML.cs
public partial class MainPage : UserControl
{
RadHtmlPlaceholder radHtmlPH;
public MainPage()
{
InitializeComponent();
radHtmlPH = null;
radHtmlPH = new Telerik.Windows.Controls.RadHtmlPlaceholder();
radHtmlPH.HorizontalAlignment = System.Windows.HorizontalAlignment.Stretch;
radHtmlPH.VerticalAlignment = System.Windows.VerticalAlignment.Stretch;
// this will work fine
//radHtmlPH.SourceUrl = new Uri("http://www.telerik.com/support.aspx");
// This link crashes second time
radHtmlPH.SourceUrl = new Uri("http://www.wynapse.com/Silverlight/Telerik/PersistenceFrameworkDataToAString.aspx");
}
RadWindow radWinNormal;
private void Button_Click(object sender, RoutedEventArgs e)
{
if (radWinNormal != null)
radWinNormal.Content = null;
radWinNormal = new RadWindow();
radWinNormal.Width = 500;
radWinNormal.Height = 500;
radWinNormal.Content = radHtmlPH;
radWinNormal.ShowDialog();
//PlaceHolder.Children.Add(radHtmlPH);
}
}
MainPage.XAML
<Grid x:Name="LayoutRoot" Background="White">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Button Content="Place Holder" Click="Button_Click"></Button>
</Grid>
Error found while debugging
Unhandled exception at 0x0249f8cf in chrome.exe: 0xC0000005: Access violation writing location 0x00000039
{System.InvalidOperationException: SetProperty failed.
at System.Windows.Browser.ScriptObject.SetProperty(String name, Object value)
at Telerik.Windows.Controls.RadHtmlPlaceholder.UpdateContent()
at Telerik.Windows.Controls.RadHtmlPlaceholder.OnSourceUrlChanged()
at Telerik.Windows.Controls.RadHtmlPlaceholder.OnSourceUrlPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry,
ValueOperation operation)
at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet, Boolean isBindingInStyleSetter)
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
at Telerik.Windows.Controls.RadHtmlPlaceholder.set_SourceUrl(Uri value)
at MedTegra.Views.Shared.ucHtmlPlaceHolderReport.radHtmlPH_Loaded(Object sender, RoutedEventArgs e)
at MS.Internal.CoreInvokeHandler.InvokeEventHandler(UInt32 typeIndex, Delegate handlerDelegate, Object sender, Object args)
at MS.Internal.JoltHelper.FireEvent(IntPtr unmanagedObj, IntPtr unmanagedObjArgs, Int32 argsTypeIndex, Int32 actualArgsTypeIndex, String eventName, UInt32
flags)}
Please revert back urgently, as our product is live and we are facing problems due to this.
Regards,
Nilesh Anchan