Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > VB How-To
|
VB How-To Ask your "How do I do this with VB?" questions in this forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB How-To section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 15th, 2006, 05:41 AM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default RUN-TIME ERRORS IN MY VB6 APPLICATION

Hi, all!!!

My program running for several years now showed run-time error 66.
It is running far and not on my PC - I can't use a VB shell to check a line called an error...
I can't find error N66 number in error's list.
I see N63:Bad record number and next is N67:Too many files... :(

I have raised error N66 and it shows message:
'Application-defined or object-defined error'...

Also I use 'On Error GoTo ApplicationError:' to trap error in some subs (not in all).

Later in the same sub I put:
Exit Sub
ApplicationError:
TRACK_ERROR ("Sub: Form1/Form_Load()")

It seems I need to do that in each sub! Is it better way to do?

I also need to number lines via 10,20,30,40,50 and so on to know which line called an error exactly.

Is it all possible to be organized easier and better under VB6 ?
Code is very big, it is great job to put traps everywhere.
Is it possible to do just for one module and return absolute line number automatically when error is called?


Please reply - it is important to solve.


Alex
 
Old June 15th, 2006, 11:18 AM
Registered User
 
Join Date: Jun 2006
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

People, I have found answer quicker than anybody replied!

here is add-ins for VB6.

It makes most code automatically, it is simple and very good.
Use that and it solves all problems I was talking about...

http://www.sharewareplaza.com/AddErr...ads_13447.html



Alex





Similar Threads
Thread Thread Starter Forum Replies Last Post
errors during run-time Chacko C++ Programming 0 March 4th, 2007 02:33 PM
Change Printer at run time for crystal rpt, VB6.0 fiiyo ASP.NET 1.0 and 1.1 Basics 0 September 19th, 2006 06:58 AM
Run time errors Martin Outlaw Excel VBA 2 August 23rd, 2006 05:13 AM
Solve Application Run Time Prob kvingupta Beginning VB 6 1 March 22nd, 2006 07:15 PM
DAO Run Time Error 3423 - VB6 to Access2000 Iblys Access 1 September 25th, 2003 09:31 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.