VB6 has generated errors

Posted on 2004-11-10
Last Modified: 2010-05-02
Whenever I close VB6 I get the following error message "VB6.exe has generated errors and will be closed by Windows." I have tried performing a clean reinstall as described in Microsoft Knowledge Base Article - 248347. No other applications malfunction. Everything else in VB6 works correctly. The problem has been going on for some months.
Question by:iramirez
    LVL 8

    Expert Comment

    What service pack are you running?
    LVL 6

    Expert Comment

    are you using Excel, Word or even Access Object Library? if so, this might be the culprit in the error you are getting. I am assuming that you are opening your application and this error occurs when you close VB6 IDE. to verify, try and remove the references you have on the project.


    Author Comment

    Thanks but the problem occurs even when all optional libraries are de-referenced and a brand new empty project is created and discarded. The problem also occurs when any of several existing projects are opened.

    Author Comment

    Thanks but the problem occurs without service packs or after all available ones have been installed.
    LVL 12

    Accepted Solution

    Are you using or did you install any third-party "add-ins" for VB6, like VBDocMan and MZTools??

    Author Comment

    The suggestions made so far are all reasonable but there are no addins or anything like that. This is what makes this so puzzling.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Introduction This article makes the case for using two modules in your VBA/VB6 applications to provide both case-sensitive and case-insensitive text comparison operations.  Recently, I solved an EE question using the LIKE function.  In order for th…
    Introduction In a recent article ( for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
    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…

    760 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

    11 Experts available now in Live!

    Get 1:1 Help Now