Sannyasin, Two things: I make it a habit to check for -1 anywhere I'm using Find in array... it just bites me if I don't.
For methods that run on the server, or even better for processes that run on the server, wrap them in an On err call method that lets you manage the errors yourself. Like not stopping for them. Log them or abort the process. On Fri, Apr 7, 2017 at 11:51 AM, Sannyasin Siddhanathaswami via 4D_Tech < 4d_tech@lists.4d.com> wrote: > Aloha, > > Yes. The crash did happen when accessing an array with a negative index! > If that’s the only thing that causes the crash, I can be extra careful > about that and do checks. Thanks for pointing this out. And yes, I wrote > that serious bug. :) > > As this is an internal database for our non-profits, it’s run in > interpreted mode, so no compiler checking done. I do a decent amount of the > programing (for the past 10-years), and use what I program. > > I don’t think I can use the compiler to do checking either, as tons of the > code is carried forward from v1 and v2, and lots of code written without > compiler declarations. > -- Kirk Brooks San Francisco, CA ======================= *The only thing necessary for the triumph of evil is for good men to do nothing.* *- Edmund Burke* ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: http://lists.4d.com/mailman/options/4d_tech Unsub: mailto:4d_tech-unsubscr...@lists.4d.com **********************************************************************