Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Gerrit Broekhuis
  Where is Gerrit Broekhuis?
 Holten
 Netherlands
 Gerrit Broekhuis
 To: António Lopes
  Where is António Lopes?
 Coimbra
 Portugal
 António Lopes
Subject: RE: Object error with top-level form
Thread ID: 438209 Message ID: 438228 # Views: 40 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Forms
Date: Friday, July 8, 2016 10:55:27 AM         
   



> >
> > Hi Koen, Hi Gene,
> >
> > I already tried this today, but tried again. In my main.prg I call my form
> >
> >
DO FORM MainForm m.goMainwindow
> > READ EVENTS

> >
> > In my procedure close_program I tried
> >
> >
goMainwindow.release>/vfp>
> > 
> > The error "GOMAINWINDOW is not an object" remains as with my previous testing.
> > 
> > My mainform is a top-level form; I also use a FPW file with:
> > 
> > RESOURCE = OFF
> > SCREEN = OFF

> >
> > Which properties could cause this?
> >
> > Regards, Gerrit
>
> MainForm should exit with a CLEAR EVENTS command, not through .Release() method. If a form is released and there is an association with a variable, the variable is set to NULL, and therefore not considered as an object.

Hi Antonio,

That makes sense. I cannot try this right now, but I will do this early next week.
First we watch the Eurocup football final with Portugal...

Regards, Gerrit

ENTIRE THREAD

Object error with top-level form Posted by Gerrit Broekhuis @ 7/7/2016 4:04:56 PM
RE: Object error with top-level form Posted by Koen Piller @ 7/7/2016 4:56:42 PM
RE: Object error with top-level form Posted by Gerrit Broekhuis @ 7/7/2016 8:35:02 PM
RE: Object error with top-level form Posted by Mike Gagnon @ 7/8/2016 1:47:42 AM
RE: Object error with top-level form Posted by Gerrit Broekhuis @ 7/8/2016 8:34:53 AM
RE: Object error with top-level form Posted by Koen Piller @ 7/8/2016 8:43:05 AM
RE: Object error with top-level form Posted by António Lopes @ 7/8/2016 10:34:23 AM
RE: Object error with top-level form Posted by Gerrit Broekhuis @ 7/8/2016 10:55:27 AM
RE: Object error with top-level form Posted by António Lopes @ 7/8/2016 11:30:30 AM
RE: Object error with top-level form Posted by Koen Piller @ 7/12/2016 1:54:02 PM
RE: Object error with top-level form Posted by Gene Wirchenko @ 7/7/2016 7:35:48 PM