Re: [fpc-pascal] Halt() bypassed try..finally block

2007-09-13 Thread Graeme Geldenhuys
On 13/09/2007, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > > Is that correct behavior? When calling Halt() somewhere inside a > > try..finally block, it _doesn't_ execute the finally code. > > This is by design. > > Halt finalizes the units and then exits. Thanks. I'll make a mental note t

Re: [fpc-pascal] Halt() bypassed try..finally block

2007-09-13 Thread Matt Emson
Michael Van Canneyt wrote: On Thu, 13 Sep 2007, Graeme Geldenhuys wrote: Hi, Is that correct behavior? When calling Halt() somewhere inside a try..finally block, it _doesn't_ execute the finally code. This is by design. Halt finalizes the units and then exits. Yeah, I always used

Re: [fpc-pascal] Halt() bypassed try..finally block

2007-09-13 Thread Michael Van Canneyt
On Thu, 13 Sep 2007, Graeme Geldenhuys wrote: > Hi, > > Is that correct behavior? When calling Halt() somewhere inside a > try..finally block, it _doesn't_ execute the finally code. This is by design. Halt finalizes the units and then exits. Michael.

[fpc-pascal] Halt() bypassed try..finally block

2007-09-13 Thread Graeme Geldenhuys
Hi, Is that correct behavior? When calling Halt() somewhere inside a try..finally block, it _doesn't_ execute the finally code. In fpGUI I used Halt() to terminate the event loop and exit a application. I then noticed that NO cleanup code gets executed after that call. Not objects get freed via