Solved

Visual Basic Crashes when I open it

Posted on 2006-11-26
8
531 Views
Last Modified: 2013-11-25
I have two user accounts on my PC (running Windows XP SP 2) at home - my home account and my work account

A few weeks ago I was on my home account and did the following actions:

> I opened VB.
> I created a new EXE application.
> I renamed the default project and form.
> I added a data report to the project.
> For some reason the menu for adding items to a project remained open and  nothing I could do would close it.
> I closed Visual Basic.

When I went back in again this time on opening it crashed. Ever since then I have been unable to open VB on my home account. Fortunately the work account is fine, and that is when I will usually open it. However it is a bit of a pain to have this problem - can anyone suggest how to fix it?

The error happens just after the splash screen opens. It just says an unexpected error has occurred, do I want to tell Microsoft?  When I click on what the error report will contain it shows this:

AppName: vb6.exe       AppVer: 6.0.97.82       ModName: vb6.exe
ModVer: 6.0.97.82       Offset: 00060b32

I posted a question to the Microsoft VB newsgroup and got the following reply:

These sorts of problems usually happen because either the toolbar/menu  settings became corrupted, or a misbehaving Add-in. In your case, it looks  like the toolbar/menu, so go to View-->Toolbars-->Customize, then click the  Reset button, and restart VB6. If it was caused by an Add-in, then disable  all of them, then re-enable them one by one until the problem appears.

However I don't understand how to do this if Visual Basic won't open.
0
Comment
Question by:purplesoup
8 Comments
 
LVL 10

Expert Comment

by:Kinger247
ID: 18014076
Personaly, I would create a new project and copy over your old code via notepad.
I presume you can open vb6 without opeing a project (ie a new project ?)
0
 

Author Comment

by:purplesoup
ID: 18014132
No, the moment I open VB 6 it crashes on the splash screen. It isn't the project that is the problem, there is something about the VB 6 settings on my home profile that stops it opening.

I have tried to see if there is a command line parameter to not open with add-ins or something, but I can't see anything.
0
 
LVL 10

Accepted Solution

by:
Kinger247 earned 200 total points
ID: 18014137
Ok, I would re-install vb. You could spend days on fixing this ...,

re-installing would take an hour at most ;)
0
 
LVL 18

Assisted Solution

by:JR2003
JR2003 earned 200 total points
ID: 18014192
I agree with Kinger247 unistall and reinstall it.
Sounds like a corrupt file or registry.
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 5

Assisted Solution

by:sivachirravuri
sivachirravuri earned 100 total points
ID: 18017140
Hi,
I seems like some DLL's might have crashed.. Please reinstall & everry thinhg will work fine.
0
 

Author Comment

by:purplesoup
ID: 18018642
I doubt it would be a DLL - are there DLLs that get used by different users?

It sounded to me as if one of the files specific to a user was corrupt, but I don't know where these files are. I had assumed by simply clearing these files out I would be back up and running.

Obviously a reinstall will do it, but I was hoping someone might know where Visual Studio VB files specific to a user are stored.
0
 
LVL 10

Expert Comment

by:Kinger247
ID: 18018741
Not as simple as that, applications that use other resources/config files etc do corrupt occasionally.
But you have to weigh-up the damage limitation (ie, your development time), I would have spent around 45mins max for a quick local solution ,then got the installation disks out.
0
 

Author Comment

by:purplesoup
ID: 18115930
Well I finally had to give up and reinstall, thanks for everyone who helped.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now