The thanks go to you Robert. FB5 has been reliably running now for several days vs. an hour or two. What was the fix to the offending code below? removing the DisposeH ? On Nov 17, 2010, at 4:33 PM, Robert Purves wrote: > >> Editor bug-fix: >> A long-standing 'dangling handle' bug has been found, that could cause a variety of crashes. > > http://en.wikipedia.org/wiki/Dangling_pointer > > This was the offending code, which although not itself causing an immediate crash, could set things up for apparently unrelated crashes elsewhere in the editor: > > local fn clearErrorArray > '~'1 > dim index as long > dim h as Handle > > for index = 1 to _maxErrs > h = gErrWindArry.errsMsgH(index) > long if ( h ) > fn DisposeH( h ) > end if > next > BlockZero( @gErrWindArry.errorType(0), _maxErrs * sizeof( ErrRec) ) // zero array > end fn > > > Thanks go to Steve, whose project reliably triggered the crashes and who endured a prolonged email interchange while we tracked down the bug. > > Robert P. > > -- > To unsubscribe, send ANY message to: futurebasic-unsubscribe@... >