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
60
Error and crashing of application after Windows 10 1903 Update
posted

I am looking for some help determining an error we are having. We are having a problem with our application crashing after a user updates to Windows 10 1903. We are currently on Infragistics version 17.2. It's only happening in one area of our application and is random but the error is consistently hitting the same line of code.

We are able to reproduce the error, sometimes. Here’s the error we are getting when running a trace and when it does occur:

Managed Debugging Assistant 'FatalExecutionEngineError' has detected a problem

Additional Information: The runtime has encountered a fatal error. The address of the error was at 0xe8007240, on thread 0x34c8. The error code is 0xc0000005

Highlighted below in yellow is where the error is happening in the code

 Private Sub LoadLayout(ByVal Ultragrid As Infragistics.Win.UltraWinGrid.UltraGrid, ByVal UltraGridID As Integer)
        Cursor.Current = Cursors.WaitCursor
        Ultragrid.SuspendLayout()
        Dim dCon As SqlClient.SqlConnection = New SqlClient.SqlConnection(ADONet)
        Dim dCom As SqlClient.SqlCommand = New SqlClient.SqlCommand("LoadGridLayout " & UltraGridID, dCon)
        dCon.Open()
        Dim isx As Boolean = False
        Dim dr As SqlClient.SqlDataReader
        dr = dCom.ExecuteReader
        If dr.Read Then
            Dim data() As Byte
            data = dr("Layout")
            Ultragrid.Layouts.Clear()
            Try
                If dr("IsXML") = 0 Then
                    Ultragrid.DisplayLayout.Load(New System.IO.MemoryStream(data), CType(Infragistics.Win.UltraWinGrid.PropertyCategories.ColumnFilters Or Infragistics.Win.UltraWinGrid.PropertyCategories.General Or Infragistics.Win.UltraWinGrid.PropertyCategories.Groups Or Infragistics.Win.UltraWinGrid.PropertyCategories.SortedColumns Or Infragistics.Win.UltraWinGrid.PropertyCategories.UnboundColumns Or Infragistics.Win.UltraWinGrid.PropertyCategories.AppearanceCollection Or Infragistics.Win.UltraWinGrid.PropertyCategories.Bands Or Infragistics.Win.UltraWinGrid.PropertyCategories.Summaries, Infragistics.Win.UltraWinGrid.PropertyCategories))
                Else
                    isx = True
                    Ultragrid.DisplayLayout.LoadFromXml(New System.IO.MemoryStream(data), CType(Infragistics.Win.UltraWinGrid.PropertyCategories.ColumnFilters Or Infragistics.Win.UltraWinGrid.PropertyCategories.General Or Infragistics.Win.UltraWinGrid.PropertyCategories.Groups Or Infragistics.Win.UltraWinGrid.PropertyCategories.SortedColumns Or Infragistics.Win.UltraWinGrid.PropertyCategories.UnboundColumns Or Infragistics.Win.UltraWinGrid.PropertyCategories.AppearanceCollection Or Infragistics.Win.UltraWinGrid.PropertyCategories.Bands Or Infragistics.Win.UltraWinGrid.PropertyCategories.Summaries, Infragistics.Win.UltraWinGrid.PropertyCategories))
                End If
            Catch
                'dr.Close()
                'dCom.CommandText = "Delete from GridLayout where Gridlayoutid = " & UltraGridID
                'dCom.ExecuteNonQuery()
            End Try
        End If
        dr.Close()
        Ultragrid.DisplayLayout.ResetAppearance()
        If isx = False Then
            Ultragrid.DisplayLayout.ResetValueLists()
        End If
        dCon.Close()
        'Ultragrid.DisplayLayout.Override.ActiveAppearancesEnabled = Infragistics.Win.DefaultableBoolean.False
        Cursor.Current = Cursors.Default
        gControl.CheckForCustomEditableFields()
        Ultragrid.ResumeLayout()
        Me.Close()
    End Sub
Parents Reply Children
No Data