Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2011-02-28
5
Medium Priority
?
384 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 143

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 2000 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

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

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

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…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

824 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