Link to home
Start Free TrialLog in
Avatar of dvplayltd
dvplayltdFlag for Bulgaria

asked on

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?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

not possible with VB6. you need to add more error handling in your code.
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.
ASKER CERTIFIED SOLUTION
Avatar of peetm
peetm
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dvplayltd

ASKER

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.
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!