Re: implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Martin Friebe
Jonas Maebe wrote: On 02 Jul 2009, at 16:58, Martin Friebe wrote: Leaves question 2: Is there a way to switch it off, to avoid the cost of creating an exception frame? (if you are either sure your constructor does not throw an exception, or for some reason do not care)? http://www.freepascal

Re: implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Jonas Maebe
On 02 Jul 2009, at 16:58, Martin Friebe wrote: Leaves question 2: Is there a way to switch it off, to avoid the cost of creating an exception frame? (if you are either sure your constructor does not throw an exception, or for some reason do not care)? http://www.freepascal.org/docs-html/

Re: implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Michael Van Canneyt
On Thu, 2 Jul 2009, Martin Friebe wrote: Michael Van Canneyt wrote: On Thu, 2 Jul 2009, Martin Friebe wrote: Inoussa OUEDRAOGO wrote: Indeed, when an exception is raised in the constructor, be it an "assert" exception or not, the destructor is called to allow the developer to clean up the "

Re: implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Martin Friebe
Michael Van Canneyt wrote: On Thu, 2 Jul 2009, Martin Friebe wrote: Inoussa OUEDRAOGO wrote: Indeed, when an exception is raised in the constructor, be it an "assert" exception or not, the destructor is called to allow the developer to clean up the "in-construction" instance's members he has al

Re: implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Michael Van Canneyt
On Thu, 2 Jul 2009, Martin Friebe wrote: Inoussa OUEDRAOGO wrote: 2009/6/29 Tom Verhoeff : While tracing a nasty bug (?), I discovered the hard way that when an Assert is done in a constructor, and it fails, then the destructor (Destroy) is automatically called. Indeed, when an exception

implicit exception frames? [Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)]

2009-07-02 Thread Martin Friebe
Inoussa OUEDRAOGO wrote: 2009/6/29 Tom Verhoeff : While tracing a nasty bug (?), I discovered the hard way that when an Assert is done in a constructor, and it fails, then the destructor (Destroy) is automatically called. Indeed, when an exception is raised in the constructor, be it an

Re: [fpc-pascal] resize windows in fpGui

2009-07-02 Thread kota kota
Thank you very much. 2009/6/30 Graeme Geldenhuys > kota kota wrote: > >> How can i make a window to shrink instead of losing its elements(buttons, >> labels) when it is being re-sized ? >> > > Use the Anchor property. By default the anTop and anLeft anchors are set on > all components. If you

Re: [fpc-pascal] If an Assert fails in constructor, then destructor called (?)

2009-07-02 Thread Tom Verhoeff
On Wed, Jul 01, 2009 at 01:15:29PM +0200, Michael Van Canneyt wrote: > On Wed, 1 Jul 2009, Tom Verhoeff wrote: >> >> Zoiets zou ook in de TObject.Create (RTL) doc. van FreePascal passen >> (lees: thuishoren). > > For non-dutch speakers: It says that this kind of information should > be included in