Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
925
AccessViolationException - ImageColumn in xamGrid
posted

Hi,

I have an SL app that displays dashboards using the XamTileView in combination with the XamDataChart and XamGrid. Since upgrading to Silverlight 5 the following issue now occurs:

  1. View a dashboard containing a XamGrid that includes an ImageColumn (for shoing KPI status for example)
  2. Navigate to a different spoke of the application
  3. Navigate backl to the dashboard and the following error occurs:

System.AccessViolationException was unhandled   Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.   InnerException:

Click here for the call stack from VS - https://skydrive.live.com/?cid=09f71a6daa654209#cid=09F71A6DAA654209&id=9F71A6DAA654209%21259

The ImageColumn is set up as follows:

 column = new ImageColumn              {                  Key = string.Format("Column{0}", j),                  HeaderText = label,                  Width = new ColumnWidth(columnWidth, false),                  ImageWidth = 16,                  ImageHeight = 16,                  ImageStyle = Application.Current.Resources["KpiStatusIconStyle"] as Style,                  ValueConverter = Application.Current.Resources["StatusIconConverter"] as IValueConverter,                  MinimumWidth = 30              };

I am running the latest version of the SL client - 5.1.10411.0

Can you please advice of potential solutions.

Regards,

Chris

Parents Reply Children