VB6.EXE - Application Error

Posted on 2002-06-22
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.

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.

Question by:cookre
  • 3
  • 2
  • 2
  • +2

Accepted Solution

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.

LVL 22

Author Comment

ID: 7100845
Sure enough - Source Code Control

Life is good again.

Expert Comment

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.
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

LVL 22

Author Comment

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.

Expert Comment

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
LVL 22

Author Comment

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.

Expert Comment

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?


Expert Comment

ID: 8662700

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?

Expert Comment

ID: 8665733
It's generally best to start a new question, but here is MS KB article that might address your issue:;en-us;214427

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


Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

Introduction While answering a recent question ( in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

773 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