# Access Violation reprojecting GoogleMapsLayer

**URL:** <https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237>\
**Category:** WinForms\
**Created:** [October 17, 2016, 5:42pm UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237 "2016-10-17T17:42:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [October 17, 2016, 5:42pm UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/1 "2016-10-17T17:42:15Z")

</div>

Hi guys,

We are using MapSuite Desdktop version 9.0.0.401. We started using this version just a couple of weeks ago. Recently we noticed whenever we try to apply a projection to a GoogleMapsLayer an AccessViolation exception is thrown:

`
System.AccessViolationException was unhandled
HResult=-2147467261
Message=Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Source=MapSuiteCore
StackTrace:
at xRM=.2EM=.5EM=(Bitmap bitmap, Double[] sourceWorldfileData, String sourceProjectionString, String targetProjectionString, Double[] targetWorldfileData)
at xRM=.2EM=.4EM=(Bitmap sourceBitmap, RectangleShape extent, String sourceProjectionString, String targetProjectionString, RectangleShape targetMinExtent)
at ThinkGeo.MapSuite.Core.ManagedProj4Projection.ConvertToExternalProjectionCore(GeoImage image, RectangleShape imageExtent)
at ThinkGeo.MapSuite.Core.Projection.ConvertToExternalProjection(GeoImage image, RectangleShape imageExtent)
at ThinkGeo.MapSuite.Core.GoogleMapsLayer.9j0=(GeoCanvas canvas)
at ThinkGeo.MapSuite.Core.GoogleMapsLayer.DrawCore(GeoCanvas canvas, Collection1 labelsInAllLayers) at ThinkGeo.MapSuite.Core.Layer.Draw(GeoCanvas canvas, Collection1 labelsInAllLayers)
at ThinkGeo.MapSuite.DesktopEdition.LayerOverlay.DrawCore(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.sRM=(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.Overlay.Draw(GeoCanvas canvas)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.dhQ=(IEnumerable`1 drawingOverlays, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.dRQ=(RectangleShape drawingExtent, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.lRQ=(RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.kxQ=(Int32 delayInterval, RectangleShape extent)
at ThinkGeo.MapSuite.DesktopEdition.WinformsMap.Refresh()
at GoogleMapProjection.Form1.Form1_Load(Object sender, EventArgs e) in C:\Users\steller\Documents\Visual Studio 2010\Projects\ThinkGeo\GoogleMapProjection\Form1.vb:line 19
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.SafeNativeMethods.ShowWindow(HandleRef hWnd, Int32 nCmdShow)
at System.Windows.Forms.Control.SetVisibleCore(Boolean value)
at System.Windows.Forms.Form.SetVisibleCore(Boolean value)
at System.Windows.Forms.Control.set_Visible(Boolean value)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at GoogleMapProjection.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
`

Any ideas?

Thanks!

Steve

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [October 18, 2016, 5:29am UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/2 "2016-10-18T05:29:01Z")

</div>

Hi Setven,

Please try to download this package and install it.

[https://ap.thinkgeo.com:5001/sharing/A5z5WdSC0](https://ap.thinkgeo.com:5001/sharing/A5z5WdSC0)

Wish that can solved your issue.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [October 18, 2016, 12:32pm UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/3 "2016-10-18T12:32:53Z")

</div>

Thanks Don! Where can I find the merge modules for distributing the needed files with our application?

Steve

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [October 19, 2016, 2:51am UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/4 "2016-10-19T02:51:25Z")

</div>

Hi Steve,

I think we won’t update the merge module before 10.0 release.

But if that’s hurry for you, please let us know.

We can build a version for you.

Regards,

Don

---

<div class="post-metadata">

**Author:** ![Steven1](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/steven1/32/18983_2.png) [@Steven1](https://community.thinkgeo.com/u/Steven1)\
**Post date:** [October 19, 2016, 12:35pm UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/5 "2016-10-19T12:35:45Z")

</div>

Hi Don,

For now it will probably be easier to just go back to the older version of MS. Do you know when MS 10.0 will be released?

Thanks!

Steve

---

<div class="post-metadata">

**Author:** ![Ethan](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/ethan/32/19964_2.png) [@Ethan](https://community.thinkgeo.com/u/Ethan)\
**Post date:** [October 20, 2016, 3:03am UTC](https://community.thinkgeo.com/t/access-violation-reprojecting-googlemapslayer/8237/6 "2016-10-20T03:03:42Z")

</div>

Hi Steve,

I just know the new version will be release this year, and now is 10/20, so I think it won’t be too long.

Regards,

Don
