Our current setup uses ArcPad 10.2.0.99 with ArcEngine 10.1. We are in the process of upgrading to ArcEngine 10.3. the current setup still works but our now getting C++ runtime error. I did this
http://support.esri.com/technical-article/000013127 and I think that may have taken care of that runtime issue.
This is our current code, more or less: No Python is used, strictly vb.net
Dim pGeoProcessor2 As IGeoProcessor = New GeoProcessorClass()
Dim parameters As IVariantArray = New VarArrayClass()
With parameters
.Add(FeatureClassFullPath)
.Add(p_SyncData.SchemaOnly.ToString)
.Add(p_SyncData.AXFPassword)
.Add(p_SyncData.EncryptAXF.ToString)
.Add(tmpOutputFile)
End With
pGeoProcessor2.Execute("ArcPadCheckout_ArcPad", parameters, Nothing)
I have a custom procedure that hunts down adds the toolbox if the tool is not found.
We often get this error but it is intermittent and not at all consistent as to when it happens:
Check-out Com Error: -2147417851 - The server threw an exception. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT)) -- at ESRI.ArcGIS.Geoprocessing.GeoProcessorClass.Execute(String Name, IVariantArray ipValues, ITrackCancel pTrackCancel)
I got the impression from the what's new in the latest ArcPad, that is could access the check-out and check-in tools without using the geoprocessor but I can't find any information on how to do that. I installed ArcPad 10.2.3.36 to try it out but there is no mention in the help how to access the data manager tools. I also noticed that there are three extra parameters when using the check-out tool via the toolbox (regarding pictures) but the tool help does not mention those new parameters nor does it show them being used in script. With the latest ArcPad installed, I was hoping that direct access to the data manager tools would perhaps eliminate once and for all the above error. I have 400 copies of my program running and it has completed over 30,000 check-out check-ins over the past 7 years.
Since upgrading to the latest ArcPad, the above code throws the com error everytime. I tried adding the extra parameters in the order they appear in the toolbox window in ArcMap but still no success. Today I will do more testing on a machine with 10.2.0.99 and one with 10.2.3.36.
If you would like to see more of the code or if you have any suggestions on improving our check-out and check-in methods. Our users all have ArcPad to do their data collection, my program to do the check-in and check-outs and either ArcEngine or ArcDesktop.
Thanks