Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Marc Weustink
Graeme Geldenhuys wrote: > On Tue, Oct 14, 2008 at 4:20 PM, Mattias Gärtner > <[EMAIL PROTECTED]> wrote: >> The variable pointer is not stored, so can not be set to nil by the LCL. >> Afaik >> it is the same with the VCL. >> >> Why not set it to nil in TForm.Destroy? > > That ties the class to a

Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Graeme Geldenhuys
On Tue, Oct 14, 2008 at 4:20 PM, Mattias Gärtner <[EMAIL PROTECTED]> wrote: > > The variable pointer is not stored, so can not be set to nil by the LCL. Afaik > it is the same with the VCL. > > Why not set it to nil in TForm.Destroy? That ties the class to a external instance variable. I thought

Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Michael Van Canneyt
On Tue, 14 Oct 2008, Graeme Geldenhuys wrote: > On Tue, Oct 14, 2008 at 3:50 PM, Michael Van Canneyt > <[EMAIL PROTECTED]> wrote: > >> When a new form is created using Application.CreateForm(), the form's > >> global instance variable is passed in as well. Now if that form's > >> CloseAction = c

Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Mattias Gärtner
Zitat von Graeme Geldenhuys <[EMAIL PROTECTED]>: > Hi, > > When a new form is created using Application.CreateForm(), the form's > global instance variable is passed in as well. Now if that form's > CloseAction = caFree, where is that instance variable assigned nil > after it was freed? > > In fpG

Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Graeme Geldenhuys
On Tue, Oct 14, 2008 at 3:50 PM, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: >> When a new form is created using Application.CreateForm(), the form's >> global instance variable is passed in as well. Now if that form's >> CloseAction = caFree, where is that instance variable assigned nil >> afte

Re: [Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Michael Van Canneyt
On Tue, 14 Oct 2008, Graeme Geldenhuys wrote: > Hi, > > When a new form is created using Application.CreateForm(), the form's > global instance variable is passed in as well. Now if that form's > CloseAction = caFree, where is that instance variable assigned nil > after it was freed? It is not

[Lazarus] Where is form instance being NIL'ed

2008-10-14 Thread Graeme Geldenhuys
Hi, When a new form is created using Application.CreateForm(), the form's global instance variable is passed in as well. Now if that form's CloseAction = caFree, where is that instance variable assigned nil after it was freed? In fpGUI, the form is freed, but the global instance variable is still