Solved

VB6.EXE - Application Error

Posted on 2002-06-22
9
2,182 Views
Last Modified: 2007-11-27
Being an old curmudgeon, I'm used to saying "None of this didn't used to be here."  Well, this didn't used to happen.

Whenever I exit VB6, whether immediately after opening it or after working in it for a while, I get:


VB6.EXE - Application Error
The instruction at "0x0049b48e" referenced memory at "0x608af85c". The memory could not be "read".


I can live with it, but it's rather irritating not having the current project show up in the 'recent' list.

I've visited Uncle Bill and others, applied his patches and followed their advice, all to no avail.

Unfortunately, I use VB so infrequently and have installed far too many things since the last successful use, I have absolutely no idea what may have caused this.

Particulars:
VS6 Enterprise
VB6.0 (SP5)
Version 8988   VBA: Retail 6.0.8964   Forms3: 2.01


I'd really like to find a fix other than re-installing VS - it's such a pain re-configuring editor, syntax coloring, and directory preferences for both VB and VC, but if I gotta, I gotta.

0
Comment
Question by:cookre
  • 3
  • 2
  • 2
  • +2
9 Comments
 
LVL 1

Accepted Solution

by:
pclement earned 200 total points
ID: 7100675
Try removing add-ins that are loading in the IDE. You might find one that's being a bit tempermental.

Paul
0
 
LVL 22

Author Comment

by:cookre
ID: 7100845
Sure enough - Source Code Control

Life is good again.
0
 

Expert Comment

by:ComTech
ID: 7393379
Message from cookre:

The accepted answer is correct, it is the source code control that is causing the problem. If you remove this from the VB add-in then the error message stops. This is because the Visual SourceSafe is stopped from loading integratedly with VB.

I found that this was because the VSS folder was missing from the C:\Program Files\Micro Studio\Common\. I located it and copied it to this directory - then went back into VB and hey presto.
0
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

 
LVL 22

Author Comment

by:cookre
ID: 7394556
At first I thought, "Boy, is EE floogledoogled, what with posting the above 4 months after the fact."

Then I got real confused when I didn't recall posting it.

Hamsumever, I regained my usual excessive self-assuredness with the observation that my lips have never uttered, nor have my fingers ever created the character sequence i-n-t-e-g-r-a-t-e-d-l-y.

I am thus able to thank CT for the ultimate cause.

Alas, now that MS.VS.NET.1.7Gb.JUST.FOR.A.COMPILER is currently both the bee's knees and the cat's meow (not to mention said worthy's pajamas), one wonders when the time will be found to re-vitalize the VB6.A.MERE.32meg environment.
0
 

Expert Comment

by:benson031397
ID: 7436373
to ComTech,

Would you teach me how to remove the source code control from the VB add-in?  Becasue I got the same problem now.


Thanks a lot
Benson
0
 
LVL 22

Author Comment

by:cookre
ID: 7436567
From VB6's menu bar, select Add-Ins, then Add-In Manager...

Removing Source Code Control was what fixed me up on the above mentioned box.

ComTech's elucidation indicated that was just the proximate cause and that the ultimate cause was the lack of directory 'Microsoft Visual SourceSafe' from the 'Common' directory under 'Microsoft Visual Studio'.

A far from protracted search located said wayward directory hiding in plain sight in the parent MSVS directory.  

It succumbed to a deft drag and drop without so much as a wimper.
0
 

Expert Comment

by:benson031397
ID: 7436583
to cookre,

I have just tried, but cannot fix it.  

I removed all the pre-loaded add-in in the add-in manage,r but still cannot fix.

I also see there is a directory called "VSS" under the Common directory under "Microsoft Visual Studio".  but still not ok.

But symtom is when I double click the button or other object, the error message box
"The instruction at "0x0049b48e" referenced memory at "0x608af85c". The memory could not be "read".
"

Click OK to terminal the program
Click CANCEL to debug the program

After that, the visual basic tools crash.

My configuration is VS6 Enterprise
                     Window 2000  Pro.


Do you think what the problem is?


Thanks
Benson
0
 

Expert Comment

by:dbritz
ID: 8662700
Hi,

I've had the exact same problem, but it occurs precicely when I Run the project, VB asks me if I want to save the project, I say  yes, the project saves, then I get that crash message.  It happens only when I do that.  Thankfully, the crash occurs AFTER it saves my project, but it's still very annoying.  I don't have Source Control in my add-ins.  Anyone know what could be the problem?
0
 
LVL 1

Expert Comment

by:pclement
ID: 8665733
It's generally best to start a new question, but here is MS KB article that might address your issue:

http://support.microsoft.com/default.aspx?scid=kb;en-us;214427

I would recommend upgrading to the latest SP if you haven't already done so:

Paul
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

829 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