I am trying to create a Maptitude Map using the .NET functionality.  I
seem to be able to create the map and do some basic settings(no errors,
haven't been able to see map yet).  I run into a problem when I try to
save the map.  I use the following code to try and save.

Gisdk.DoFunction("SaveMap", "Tom Map", "C:\Temp\MapTest\MyFirstMap.map",
Nothing)

I initialize Gisdk as follows

      Gisdk = New CaliperForm.Connection
   Gisdk.MappingServer = "Maptitude"
   Gisdk.Open()

The error is

CaliperForm.Connection.DoFunction("SaveMap" , ... ) threw an exception.
The server threw an exception. (Exception from HRESULT: 0x80010105
(RPC_E_SERVERFAULT)) The connection has been closed.

If I then run Maptitude, the program opens with the map I just saved
sort of visible.  It remains blank, but I can see the label "Tom Map" in
the title bar.  A dialog box appears that says, "Sorry, the program
referenced memory illegally.  When I click OK the program closes.  If I
then re-run Maptitude it does not produce the error, but "Tom Map" is no
longer open.  If I try to open the file, it gives a "Could not open ..."
error.  Can anyone help?

Reply via email to