• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 388
  • Last Modified:

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

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
dvplayltd
Asked:
dvplayltd
  • 2
  • 2
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
not possible with VB6. you need to add more error handling in your code.
0
 
peetmCommented:
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
 
peetmCommented:
0
 
dvplayltdAuthor Commented:
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
 
dvplayltdAuthor Commented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now