Home > Domino Tips > True Domino Bloopers > True Domino Blooper #21: The error handling error
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

TRUE DOMINO BLOOPERS

True Domino Blooper #21: The error handling error


Kurt Ringleben
01.24.2003
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Let this Lotus developer sit you down and spin you a yarn about how he filled the hard drive on his high-end server with more than a million agent logs in less than an hour. You may get a chuckle and learn something at the same time.

Being a good developer, all of my LotusScript has an Error handler following the pattern:

Sub MyProcedure 
Dim .... 
On Error Goto Err_MyProcedure ... my code Exit_MyProcedure: Exit Sub Err_MyProcedure: Call LogThisError("MyProcedure",Err,Erl,Error$) 'Generalized
Errorhandler creating a document in a log database Resume Exit_MyProcedure End Sub

On one occasion, there was a check that needed to be performed, regardless of whether an error was happening or not, so I coded it like this:

Exit_MyProcedure: 
        if doc.hasEmbedded then ... 

Unfortunately the doc was not set at this time, so the execution jumped to the error label, created an entry in the database and then jumped back to the faulty code. Since we had quite a powerful server, I managed to create 1.2 million documents in the agent log in less than 30 minutes. Needless to say, the hard disk was full.

Lesson learned: If there is a need for code in the Exit_ Label, have an On Error Resume next before the ...


Do you have your own blooper? Send it in and claim your fame.

Every story in our bloopers series comes to us directly from a SearchDomino.com administrator, developer or consultant. For obvious reasons, some contributors choose to remain anonymous.

MORE ON THIS TOPIC:

Read all SearchDomino.com's true bloopers.

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
True Domino Bloopers
True Domino Blooper #29: Agent OOPS
True Domino Blooper #28: The Super Server Upgrade
True Domino Blooper #27: Blame it on Domino
True Domino Blooper #1: The Out-Of-Office nightmare
True Domino Blooper #2: Independence Day blunder
True Domino Blooper #3: Return to sender
True Domino Blooper #4: Extended directories or bust!
True Domino Blooper #5: I'm not a Notes expert, but I play one on TV
True Domino Blooper #7: AdminP worm unleashed
True Domino Blooper #8: With vacations like this, who needs work?

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts