4.7 Hard Crash Opening a Grid

Sep 30, 2011 at 3:48 PM

 

In MW4.7 i attempt to open a grid on the disk. All has been working properly until one of my users accidenatally removed the raster folder. Rather than an exception the program hard crashes. The exception bypasses the try-catch and also does not return a False on the grid.Open

 

Try

    Dim grid As New MapWinGIS.Grid

    Dim grdPath As String = AddBackslash(My.Application.Info.DirectoryPath) & "Rasters\Terrain.aux"

    If grid.Open(grdPath, MapWinGIS.GridDataType.LongDataType, True, MapWinGIS.GridFileType.UseExtension) = True Then
          'load it
    Else
          MsgBox("Could not open the terrain grid.", MsgBoxStyle.Critical)
    End If
Catch ex As Exception
        MsgBox("There was an error encountered in loading the shapefiles." & DLF & ex.ToString, MsgBoxStyle.Critical)
End Try

 

I will put some code to check for existsnce but is that the intended behavior?

 

~AGP