Re: [Lazarus] How to catch an unhandled exception? [FIXED - but there is an FPC bug here]

2018-03-09 Thread Gabor Boros via Lazarus
2018. 03. 09. 12:09 keltezéssel, Tony Whyman via Lazarus írta: Finally, knowing all this, I go back to Gabor's program and add the line (again shown in context):    repeat   SQR:=SM.Query(nil,SRB);   for i:=0 to SQR.GetCount-1 do    begin case SQR[i].getItemType of isc

Re: [Lazarus] How to catch an unhandled exception? [FIXED - but there is an FPC bug here]

2018-03-09 Thread Tony Whyman via Lazarus
A supplementary for anyone confused by the last extra parameter to SetString in the previous post (repeated below). When I wrote up the bug report, I should have gone one step lower in the code. The SetString commented out below is actually an internal function: procedure TOutputBlockItem.SetS

Re: [Lazarus] How to catch an unhandled exception? [FIXED - but there is an FPC bug here]

2018-03-09 Thread Tony Whyman via Lazarus
Thanks to Giuliano mentioning debug libraries I have been able to duplicate the problem and to find the source of the bug - but it is as weird as it gets. FYI: tests done on Linux Mint 18 with Lazarus 1.8.0 and fpc 3.0.4. The evidence so far: 1. Gabor's program ends with an exception when usi