Beta2 Init problem

This forum is now locked, since Gold Support is no longer offered.

Moderator: SourceGear

Locked
djMax
Posts: 32
Joined: Wed Dec 01, 2004 1:05 pm
Location: Boston, MA

Beta2 Init problem

Post by djMax » Mon Jun 27, 2005 12:06 pm

My VS.Net plugin that used Vault (which worked with 3.1 Beta1) is failing now with this:

Object reference not set to an instance of an object.
at VaultClientOperationsLib.LocalSettings.GetBool(String key)
at VaultClientPresentationLib.GUIClientInstance.Init(FormShiftQuery dialogOwner, AccessLevelType accessLevel)

Thoughts?

Thanks.

djMax
Posts: 32
Joined: Wed Dec 01, 2004 1:05 pm
Location: Boston, MA

Post by djMax » Mon Jun 27, 2005 12:26 pm

I think maybe I'm supposed to call LocalSettings.Init() first.

dan
Posts: 2448
Joined: Wed Dec 17, 2003 5:03 pm
Location: SourceGear
Contact:

Post by dan » Mon Jun 27, 2005 12:33 pm

Yes, I was just looking at this, and that is exactly the right workaround.

We made a change in Beta 2 to account for the possibility of there not being a registry for local settings (for the Unix and OSX CLC), and it now looks like local settings needs to be initialized prior to GUIClientInstance init.

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Post by jeremy_sg » Fri Jul 01, 2005 9:12 am

There is no problem running the other VaultAPI programs, so I can only conclude that this is a result of your using GUIClientInstance (which was not intended to be used outside of the VaultGUIClient.exe) instead of the regular ClientInstance. Is there a reason that you're using GUIClientInstance?

Locked