Skip to main content
    Country/region select      Terms of use
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

I've been writing a bunch of SPRs recently about crashes in LotusScript, and I thought my findings might be of use to the folks here. I've found three things to avoid to prevent my code from crashing the client or server.

  1. Don't rely on LotusScript object reference counting and cleanup when the objects are defined in different script libraries (class X in library A contains an instance of class Y in library B). Use the Delete subroutine and statement to explicitly delete such objects. I've been being extra safe and doing that regardless of whether they're in the same library.
  2. Don't "redim preserve" arrays of objects.
  3. Don't delete an object from within its own method (directly or by calling another method).

Andre Guirard | 17 March 2010 08:25:33 AM ET | Home, Plymouth, MN, USA | Comments (8)

Search this blog 


    About IBM Privacy Contact