Had some help recently to resolve an issue with MW crashing Access 2003, and it appeared to be resolved. Unfortunately, it's returned.
Previous testing was with a very simple A2003 file containing just one form with a Map control. Have now tried MW with an application that I am developing, and that contains numerous other controls. The Map control is contained within an Access Tab control. Here is the Load event for the form that contains the Map control. There is nothing else in the app that pertains to the Map control
Private Sub Form_Load()
Dim gs As New GlobalSettings
gs.ApplicationCallback = New MwCallback
axMap.TileProvider = tkTileProvider.OpenStreetMap
iLayerhandle = axMap.AddLayerFromFilename("d:\\FromDBF.shp", tkFileOpenStrategy.fosAutoDetect, True)
' axMap.Projection = tkMapProjection.PROJECTION_WGS84
End Sub
There is a Class module to define Global settings. The above code works perfectly in my original testing MDB, but when I uncomment the Projection statement, it consistently crashes A2003.
Comments: Microsoft Forms 2.0 Frame should be used to avoid crashes in previous versions of MS Access.
Previous testing was with a very simple A2003 file containing just one form with a Map control. Have now tried MW with an application that I am developing, and that contains numerous other controls. The Map control is contained within an Access Tab control. Here is the Load event for the form that contains the Map control. There is nothing else in the app that pertains to the Map control
Private Sub Form_Load()
Dim gs As New GlobalSettings
gs.ApplicationCallback = New MwCallback
axMap.TileProvider = tkTileProvider.OpenStreetMap
iLayerhandle = axMap.AddLayerFromFilename("d:\\FromDBF.shp", tkFileOpenStrategy.fosAutoDetect, True)
' axMap.Projection = tkMapProjection.PROJECTION_WGS84
End Sub
There is a Class module to define Global settings. The above code works perfectly in my original testing MDB, but when I uncomment the Projection statement, it consistently crashes A2003.
Comments: Microsoft Forms 2.0 Frame should be used to avoid crashes in previous versions of MS Access.