Quantcast
Viewing all articles
Browse latest Browse all 2341

Commented Unassigned: MSAccess 2007 with MapwinGis 4.92 crashes [25876]

I've build an App in Access 2007 with MapWinGis ocx 4.92 (windows 7 64 bit). For the Moment I just use the Form to show tiles from various Providers. I can make changes in code and save them, but in the end access always crashes, especially when I close the form or Access. This is the complete code I use at form load:

Private Sub Form_Load()
Dim eXTent As New MapWinGIS.Extents
eXTent.SetBounds 1020000, 7023000, 0, 1220000, 7140000, 0
Map1.CursorMode = 2 'Pan
Map1.SendMouseDown = True
Map1.SendMouseMove = False
Map1.SendSelectBoxFinal = False
Map1.ProjectionMismatchBehavior = tkMismatchBehavior.mbCheckStrictAndReproject
Map1.Projection = tkMapProjection.PROJECTION_GOOGLE_MERCATOR
Map1.Tileprovider = tkTileProvider.GoogleMaps
Map1.Extents = eXTent

Can anyone tell me why the program crashes?
Does the new OCX no longer work with Access and VBA?

Thanks for any help
Comments: ** Comment from web user: sleschinski **

Thanks for the update. I finally checked it myself with MS Access 2013 x64 (I had to build x64 version of control). It crashes indeed, but it seems it's easy to fix. MS Access is too restrictive to ActiveX controls, so that even CMapView.OnCreate method isn't called in designer, while MapWinGIS does some important initialization in that function. Simple moving of the lines to the constructor, where they should have been from the very beginning, fixed the issue. I'll commit a fix shortly and since it's serious issue, in several days we shall update installer with the fix.

Thanks for testing once more,
Sergei


Viewing all articles
Browse latest Browse all 2341

Trending Articles