Quick Search for:  in language:    
class,written,James,Boyd,loggererror,handler,
   Code/Articles » |  Newest/Best » |  Community » |  Jobs » |  Other » |  Goto » | 
CategoriesSearch Newest CodeCoding ContestCode of the DayAsk A ProJobsUpload
Visual Basic Stats

 Code: 3,011,557. lines
 Jobs: 117. postings

 How to support the site

 
Sponsored by:

 

You are in:

 
Login



Latest Code Ticker for Visual Basic
Defrag at certain time
By Michael Nipper on 7/1


Click here to see a screenshot of this code!Extended Find Ver 2
By Roger Gilchrist on 7/1

(Screen Shot)

Y! Module
By NightCrawler on 7/1


Files Comperator (the right way)
By Jarry Claessen on 6/30


Simple UDP example
By Mick Walton on 6/30


CAPS Trigger
By Trevor Burley on 6/30


Auto clip picture
By Kenneth. Jakobsen on 6/30


Click here to see a screenshot of this code!Game of life clone (cool math)
By Johannes B on 6/30

(Screen Shot)

String to CHR()
By Nikhil Raj on 6/30


Click here to put this ticker on your site!


Add this ticker to your desktop!


Daily Code Email
To join the 'Code of the Day' Mailing List click here!





Affiliate Sites



 
 
   

Powerful & Flexible Application Logger & Error Handler

Print
Email
 
winzip icon
Submitted on: 10/12/2000 12:36:32 AM
By: James Boyd 
Level: Intermediate
User Rating: By 16 Users
Compatibility:VB 4.0 (32-bit), VB 5.0, VB 6.0

Users have accessed this code 11133 times.
 

(About the author)
 
     This class, written by James Boyd, is a logger/error handler that does many things: 1.) Displays errors to users when they occur 2.) Records the activities of the application as various subroutines get executed 3.) When a run-time error happens, it can fire off an e-mail to the developer, replete with routine name, error description, and even a dump of the app's execution stack at that point 4.) It can also maintain a text file which has the application's execution stack history There are two ways of using this error handling/logging class: 1.) Use it just for error trapping 2.) Use it also for logging the execution path of an application. Since it captures the exact occurrence of a logged activity down to the THOUSANDTH of a second, it can be extremely useful for performing performance/efficiency analysis on subroutines.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzipto decompress it.

Virus note:All files are scanned once-a-day by Planet Source Code for viruses,but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:
1)Re-scan downloaded files using your personal virus checker before using it.
2)NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
3)Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
1) You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.   
2) You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
3) You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
4) You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.
 
Report Bad Submission
Use this form to notify us if this entry should be deleted (i.e contains no code, is a virus, etc.).
Reason:
 
Your Vote!

What do you think of this code(in the Intermediate category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor See Voting Log
 
Other User Comments
10/12/2000 6:50:38 AM:MaxW0lf
Rockin' code! 5 stars!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/12/2000 5:25:12 PM:Rico
Very useful and well written too!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/13/2000 3:58:06 AM:Walther
Elegant coding, very useful ! 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/13/2000 11:14:30 AM:Olga
Good job , James.
Thank you !
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/14/2000 2:39:11 AM:Andre
Great job, James but one problem
the 
email-prog (outlook) don't start up
a 
missing link..?
Can you help me ??
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/15/2000 11:33:25 PM:LockwoodTech
Good code ... but the code doesn't 
consistently work with different long 
messages.  I can send all of the pieces 
of one message in 100 char pieces but 
to send it at once it fails on 244th 
character.  Coming from righ it fails 
on 176th.  This should be tested on 
large strings to determine if certain 
characters, combination of characters 
or character + string length cause it 
to fail.  Are there any other 
characters to trap for?
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
10/16/2000 11:12:28 PM:LockwoodTech
thx James for reply (via email) - API 
isn't too robust but knowing 
limitations helps create a work-around. 
 Test return code - if it is 2 
(failure) slim down message and try 
again.  James says rev 2 in the 
pipeline.  5 for effort.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/26/2000 11:51:02 AM:Mike L
Excellent code, but as some others have 
reported the email program (Outlook 
Express in my case) fails to open up. 
Any fixes ? Thank you. 
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
11/29/2000 1:13:23 AM:Pramono Jekti
The email program (Outlook 5 in my 
case) fails to open up because VB API 
"ShellExecute" return value 2 (mean 
?).
Disable this command/line 
:
MessageBody = Replace(MessageBody, " 
", "%20") 
in function 
"Email_Erorr",
and abrakadabra.....the 
email program show up.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
3/28/2001 2:32:31 PM:David F
Great Code!!!  Comes in very 
handy!!
Does anyone know about using 
Lotus
Notes to run the email portion 
of this
code?  Any info would be 
greatly 
appreciated.
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/4/2002 8:19:44 PM:Thomas Hannibal
When opening the default email-program 
using the Shell command you have to 
make sure that the email-body isn't too 
long. If it is too long the email 
program will not open!!! I don't know 
the reason for it. Maybe somebody else 
knows?!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
6/19/2003 10:55:41 PM:
I am using Outlook express 6, and it 
puts the WHOLE email body, subject, etc 
in the TO field..!
Keep the Planet clean! If this comment was disrespectful, please report it:
Reason:

 
Add Your Feedback!
Note:Not only will your feedback be posted, but an email will be sent to the code's author in your name.

NOTICE: The author of this code has been kind enough to share it with you.  If you have a criticism, please state it politely or it will be deleted.

For feedback not related to this particular code, please click here.
 
Name:
Comment:

 

Categories | Articles and Tutorials | Advanced Search | Recommended Reading | Upload | Newest Code | Code of the Month | Code of the Day | All Time Hall of Fame | Coding Contest | Search for a job | Post a Job | Ask a Pro Discussion Forum | Live Chat | Feedback | Customize | Visual Basic Home | Site Home | Other Sites | About the Site | Feedback | Link to the Site | Awards | Advertising | Privacy

Copyright© 1997 by Exhedra Solutions, Inc. All Rights Reserved.  By using this site you agree to its Terms and Conditions.  Planet Source Code (tm) and the phrase "Dream It. Code It" (tm) are trademarks of Exhedra Solutions, Inc.