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.
- 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.
- Don't "redim preserve" arrays of objects.
- 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)

