Re: TZF - Reusing a from

Chris Morgan <[email protected]> Fri, 26 Sep 2003 09:03:41 +0100
Newsgroups gmane.comp.lang.delphi.topaz
Message-ID <[email protected]>
Hi,

Access violations are nearly always because you have tried to use an
object that you have not yet created, or you have continued to
use an object after you have destroyed it.

You need to create an instance of your form, either in the DPR
file or in another unit. The access violation could also be
due to your reused form attempting to use objects on another
form which you had forgotten was used by your reused form.

You should persevere with this code reuse, as this is the whole
point of object-orientation, and it will definitely make your
life easier, and future projects quicker, in the long run.

Cheers,

Chris

----- Original Message ----- 
From: "Philip Kidder" <[email protected]>
To: <[email protected]>
Sent: Thursday, September 25, 2003 5:22 PM
Subject: TZF - Reusing a from


> Howdy,
>
> Stupid me, I thought I would reuse a form and it isn't working. I
declared a
> form with that contained all the databases in my application. The
first
> project that I wrote using the database form works fine. When I
started the
> second project I added the form to the project and everytime I try
to open a
> database I get "Access violation at ####### in module 'CASHREG.EXE'.
Read of
> address FFFFFFFF.
>
> I have tried creating a new DataForm and use it instead and I still
get the
> error. Like I said the first project works.
>
> Am I loosing my touch or just my mind?
>
> Phil Kidder
>

--^----------------------------------------------------------------
This email was sent to: [email protected]

EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]

TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
--^----------------------------------------------------------------