Quantcast
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: Crash Access 2003 [25925]

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: ** Comment from web user: sleschinski **

I checked it with Access 2003 and I have crashes in it. However I wasn't able to get anything from debugging session: there is no MapWinGIS functions in the call stack when it crashes. The initialization of the lib and constructor of control seem to be working correctly, after it crashes somewhere is MsAccess.exe

After some googling I found that the problem is reported for many ActiveX controls: http://www.experts-exchange.com/Programming/Languages/Visual_Basic/Q_24419905.html. While it's not clear what is the reason for it (presumably dll conflicts).

The solution given in the link (Forms 2.0 frame) seems to be working for me even when I place the frame on the page of tab control. Though it took me some time to find out how to do it (map isn't displayed in the regular properties window and no IntelliSense provided for it). However it can easily solved like this:
```
Dim axMap As MapWinGIS.Map
Set axMap = Frame1.Map1
axMap.Projection = PROJECTION_GOOGLE_MERCATOR
```
I suggest you to try this solution, as I have no clue how to deal with these crashes apart from asking help from the MS Access team.


Viewing all articles
Browse latest Browse all 2341

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>