VB6 crashes when opening from Source Control in Windows 7

If you are having a problem using Vault, post a message here.

Moderator: SourceGear

Post Reply
jepthy
Posts: 6
Joined: Mon Dec 20, 2010 5:01 pm

VB6 crashes when opening from Source Control in Windows 7

Post by jepthy » Thu Feb 24, 2011 10:26 am

I am trying to migrate to Windows 7.
I have Windows 7 64 bit professional. I have installed VB6 and Source Gear Vault (4.1.1 18402).
Both programs run correctly on their own.
I have have ensured that in the registry there is an entry for SourceGear Vault Classic Client (Software\SourceGear\Vault Client) and ProviderRegKey (Software\SourceGear\Vault Client).

When I run VB 6, I run it as administrator, and tell it to run in Compatibility Mode for Windows X2 SP2.

However, whenever I go into Tools/Source Gear Vault/Create project from SourceGear Vault, VB 6 crashes on me.
It tells me Visual Basic has stopped working.

Any idea why this may be?

When debugging, it tells me the Call Stack Location is:
VaultIDE.dll!10006a0a()

Unhandled exception at 0x10006a0a in VB6.EXE: 0xC0000005: Access violation reading location 0x00000000.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: VB6 crashes when opening from Source Control in Windows

Post by Beth » Thu Feb 24, 2011 11:39 am

I can give you some ideas to try, but Vault 4.1.x is not supported on Windows 7. Also, I don't think the 1.1 .NET framework is fully supported on Windows 7, which is required for integration with VB6. Microsoft also doesn't support all parts of VB6 on Windows 7.

I'll give you the list of things to try, but can't guarantee functionality.

1) Install 1.1 .NET framework
2) Make sure that service pack 6 for VB6 is installed, or install it.
3) regsvr32 vbscc.dll
4) Find vbaddin.ini (C:Windows) and add vbscc=3.
5) Set Vault to default SCC in the Vault GUI client under Tools - Options - General.
6) Change registry settings.
....7a) In the registry, under HKEY_LOCAL_MACHINE\Software\Wow6432Node\SourceCodeControlProvider and add a string and call it ProviderRegKey and give it the data SOFTWARE\SourceGear\Vault Client.
....7b) In the registry, under HKEY_LOCAL_MACHINE\Software\Wow6432Node\SourceCodeControlProvider\InstalledSCCProviders, change the key that might list the Vault VS 2003 Compatible Client to read as SourceGear Vault Classic Client and give it the data of SOFTWARE\SourceGear\Vault Client
Beth Kieler
SourceGear Technical Support

mmferry
Posts: 2
Joined: Mon Mar 26, 2012 12:35 pm

Re: VB6 crashes when opening from Source Control in Windows

Post by mmferry » Mon Mar 26, 2012 12:43 pm

Any suggestions for this?

I get the same exact issue - VB6 crashes when trying to "Create Project from SourceGear Vault" in the tools menu of VB6.

Crash says " Visual Basic has stopped working"

Both Vault and VB6 run just fine on their own. And I have done all of the recommendations for getting VB6 integration working on Windows 7. It superficially appears to work, but when you try to actually use it - boom.

My config:

Win 7 64
VB6 SP6
Vault 5.0.4

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: VB6 crashes when opening from Source Control in Windows

Post by Beth » Mon Mar 26, 2012 3:34 pm

If you're using Vault 4.1.4 like the previous user was, be aware that version is not supported on Windows 7.

Here's a better way of running Vault on Windows 7 with VB6.
  • 1) In the Vault program files directory, find the file called VaultGUIclient.exe.config.
    2) Make a copy of the .config file and rename it to vb6.exe.config.
    3) Edit the vb6.exe.config file so that right after the <configuration> tag, you'll have the following:
    • <startup>
      <supportedRuntime version="v2.0.50727"/>
      <requiredRuntime version="v2.0.50727" safemode="true"/>
      </startup>
    4) Save and close the vb6.exe.config.
    5) Copy the config file to the VB6 program files directory. You should see VB6.exe in the same directory.
Now open VB6 and try it.
Beth Kieler
SourceGear Technical Support

mmferry
Posts: 2
Joined: Mon Mar 26, 2012 12:35 pm

Re: VB6 crashes when opening from Source Control in Windows

Post by mmferry » Sun Jun 10, 2012 12:52 pm

Btw - I just wanted to report that this solution does work. Thanks very much.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: VB6 crashes when opening from Source Control in Windows

Post by Beth » Mon Jun 11, 2012 12:28 pm

You're welcome, and thank you for the update.
Beth Kieler
SourceGear Technical Support

Post Reply