Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

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
?
381 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Suggested Courses

664 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