Solved

How to change the default error handle of VB6 and to see SOURCE where error raise too ?

Posted on 2011-02-28
5
374 Views
Last Modified: 2012-05-11
Hi experts!

I have a VB6 application, which are very complex and have BIG problem to locate where error occurs. Problem is that error occurs once time in 2-5 days and it very hard to detect the code which produce problem. Also I start to write a error handle on possible places, but after 2 weeks still I do not find the problem code ..no matter I have 10 years programming experience with Vb6.

So my question is this: do I have directive to VB6 or other way to change the way VB6 show unhandled error? Primary I need except the message to see and SOURCE (class, procedure or function), I mean to show err. Source. How to do this?
0
Comment
Question by:dvplayltd
  • 2
  • 2
5 Comments
 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 34995719
not possible with VB6. you need to add more error handling in your code.
0
 
LVL 10

Expert Comment

by:peetm
ID: 34995810
You''ll need to add error handlers everywhere - and they need to be good ones, i.e., 'fitted' with the name of the procedure, and even better - with line numbers (yup, that's right, line numbers!).

There are several commercial tools for doing this (Google is your friend); some also have trial versions that work on a limited set of modules/forms.  If your project is big, it's most likely got too many for those trials though.
0
 
LVL 10

Accepted Solution

by:
peetm earned 500 total points
ID: 34995822
0
 

Author Closing Comment

by:dvplayltd
ID: 34995891
10x. Look that will help. And also I read it do not change my source code, just put in final .exe file his code. Hyymmm.
0
 

Author Comment

by:dvplayltd
ID: 35018894
Yeee! This AVISO VB Watcher is great tool ! I found the error ..it was VERY complicate and rarerly error - but I locate it with help of VB Watcher!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 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

12 Experts available now in Live!

Get 1:1 Help Now