I’m using Map Suite 9 on a 64 bit machine.
I’ve followed these steps to try get my RPF files working:
-
Reference FdoExtension.dll in my project.
-
Used MapSuiteFdoExtension.msm to install the other dependencies. (All the guides I saw on installing dependencies to the System involved copying a particular folder into either System32 or SysWOW64, but these didn’t exist in my Map Suite 9 folder so I was forced to use the msm, but I think that did the same thing.)
-
Added this code to the appropriate place:
GdalRasterLayer gdalLayer = new GdalRasterLayer(“C:/path/to/file/a.toc”);
gdalLayer.Open();
StaticOverlay.Layers.Add(gdalLayer);
It compiles fine. In the UI, however, I see “Exception has been thrown by the target of an invocation.”
Debugging into this a bit, I see this error:
System.Runtime.InteropServices.SEHException was unhandled.
Message: An exception of type ‘System.Runtime.InteropServices.SEHException’ occurred in OSGeo.FDO.dll and wasn’t handled before a managed/native boundary.
Module information:
Version: 3.07.0.0
Original Location: C:\Windows\SysWOW64\MapSuiteFdoExtension\X86\OSGeo.FDO.dll
Is there a property I’m not setting? Is there an issue with how the msm installed the dlls? Something else entirely?
Thanks.