Re: How to kill a form



That can't be it.

Form references are different from other references. When a form is
released, all of the references to it are set to NULL and the form is
released.

On Wed, 18 Jul 2007 14:11:12 -0700, "Paul Pedersen" <nospam@xxxxxxx>
wrote:

Funny you should ask. I just ran into that today. It turned out (I think)
that there was a reference I didn't think of, which resulted from something
like this (in a process external to the form)

result = CloseForm(oFormRef)

PROCEDURE CloseForm
LPARAMETERS oForm
oForm.release

The remaining reference is in the calling proc (oFormRef).

This doesn't apply directly to your situation, since like I said it's
external to the form. No thisform.release anywhere. But check again for
references you might have missed. A forms collection perhaps?

Also, a reference to any of the objects on a form will prevent the form from
closing. Check for those too.



"Ook" <zootal@xxxxxxxxx> wrote in message
news:1184792458.127647.11260@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I have a form with nested page frames, tons of code, etc. When I
thisform.release, nothing happens. I have verified that there are no
public variables hanging around, all objects added to the form are
removed, all open tables are closed. AFAICT, I have properly cleaned
up everything that should need to be cleaned. Display Memory/Status
does not show anything that should stop the form from closing. What
else would stop a form from closing?

One thing I wish VFP had was a KillFormNowNoMatterWhatDammIt!()
function :)


.



Relevant Pages

  • Documents referencing a ~tmp file ?
    ... I have several hundred documents that were created using a VBA ... Occasionally when closing of the documents based on the template, ... How can I remove the references for ALL documents and replace them ...
    (microsoft.public.word.vba.general)
  • Re: Two possible bugs (err... undocumented features) in Delphi 7.
    ... >>All the code pertinent to Iz is here. ... > In this case, the code that references Iz never gets executed, and the ... When a form is hidden, it does not seem to get FormCloseQuery event ... form is closing to a Application.Terminate in another form.? ...
    (borland.public.delphi.nativeapi)
  • Re: SW2008 Opening Random Files In Background
    ... and I'm wasting half of my day closing them all the ... referenced documents" to none. ... not open documents that have references in the offending assemblies. ...
    (comp.cad.solidworks)
  • RE: Documents referencing a ~tmp file ?
    ... You may have objects that are created by code in the template but are not ... > Occasionally when closing of the documents based on the template, ... > by an open VBA project. ... You should close the project that references ...
    (microsoft.public.word.vba.general)