Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 824633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:07:37+00:00 2026-05-15T03:07:37+00:00

A VB6 app is experiencing a run-time errors at a variety of places. I

  • 0

A VB6 app is experiencing a run-time errors at a variety of places.

I know this is the result of poor error handling, but is it possible to analyse the code to see where it is susceptible to run-time errors?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:07:38+00:00Added an answer on May 15, 2026 at 3:07 am

    You need to make sure that every one of the methods (functions, subs, properties…) in your code base has an error handling statement. It’s probably true that not every single one can generate a run time error, but that will protect the application from crashing without a lot of upfront analysis.

    Make sure there’s a statement before any executable line of code that says “On Error GoTo…” with a label, and then make sure to put that label with some error handling code at the bottom of the method. I’ve used a free tool called MZ-Tools 3.0 that allows you to automate the inclusion of this text. There is an Error Handler tab in the options that lets use specify what text you want to put in and where. This is what mine looks like:

        On Error GoTo l{PROCEDURE_NAME}_Error
    
        {PROCEDURE_BODY}
    
        Exit {PROCEDURE_TYPE}
    
    l{PROCEDURE_NAME}_Error:
    
        LogError "{MODULE_NAME}", "{PROCEDURE_NAME}", Err, Err.Description
    

    Then I just make sure that the LogError function exists and writes the error out to a log file that I can review.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a strange error in a VB6 app this morning and it all
I need to pass data between a vb6 app and a .net app. This
I know a lot of question regarding VB6 migration have been asked, but I
I am currently maintaining a VB6 app, but have very little knowledge of VB6.
Should I run a classic VB6 app thru the upgrade wizard in VS08 or
I'm porting an old VB6 app into .Net but one Vb6 form is too
I'm converting an old VB6 app that's been chugging along for years, but has
Far out, this old vb6 app is killing me. How did I ever develop
We have a a VB6 app (in a COM component) which uses CDate() to
I have a VB6 app. There is a main form. It houses a user

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.