Progress Reports

Coordinator
Feb 8, 2010 at 2:59 PM

I'll put reports on how things are going as messages in this thread.  That way if you want, you can subscribe just to this thread if you want to stay updated.

Coordinator
Feb 16, 2010 at 3:11 AM
Edited Feb 16, 2010 at 3:51 PM

I'm stuck right now on creating a GetOptions object from the VaultClientIntegrationLib::GetOptions class.  In theory, it's constructor creates it, so that (in C# at least) new GetOptions().  Which in VFP.Net would be 

tLocal toGetOptions as VaultClientOperationsLib::UserOptionsCollection

loGetOptions = VaultClientIntegrationLib::GetOptions()

No joy, hnowever: so I'll have to wait until the eTec folks come up for air and ask them to take a look at it.  If anyone wants to play with it, the Sourcegear Vault 4.x download is available here.

Here's the error:

System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at VaultClientIntegrationLib.GetOptions..ctor()

   at VaultAPI.VaultAPICalls.SetGetOptions(Boolean tlUseDefault, String tcMakeWritable, String tcMerge, String tcOverrideEOL, String tcPerformDeletions, Boolean tlRecursive, String tcSetFileTime, Boolean tlSetAsDefault) in C:\Documents and Settings\Hank\My Documents\VFPNetProjects\VaultAPI\VaultAPI\VaultAPIClass.prg:line 167

   at VaultAPI.VaultAPICalls.GetLatest(String tcLocalPathOrWildCard, Boolean tlRecursive) in C:\Documents and Settings\Hank\My Documents\VFPNetProjects\VaultAPI\VaultAPI\VaultAPIClass.prg:line 213

   at GetLatest_Test.GL1() in C:\Documents and Settings\Hank\My Documents\VFPNetProjects\VaultAPI_Test\Program.prg:line 35

   --- End of inner exception stack trace ---

   at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)

   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

   at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)

   at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)

   at VFP.Runtime.VM.RuntimeServices.InvokeMethod(Object target, String name, Object[] args)

   at VFP.Runtime.VM.RuntimeServices.DoInvoke(Object target, String name, Object[] args)

   at VFP.Runtime.VM.RuntimeServices.Invoke(Object target, String name, Object[] args)

   at VFP.Runtime.VM.VFPValueHolder.__Invoke(String member, Object[] args)

   at VFP.Runtime.VM.VFPValueHolder.__Invoke(String member, Object[] args)

   at ProgramModule.Main() in C:\Documents and Settings\Hank\My Documents\VFPNetProjects\VaultAPI_Test\Program.prg:line 10