Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 5 of 5 total
Thread On closing an App?
Tue, Apr 2 2019 5:33 PMPermanent Link

Ian Branch

Avatar

Hi Guys,
Given the normal EDB configuration - Engine/Session/Database/DataSets.

And assuming one or more DataSets are Open.

When closing an App, is it acceptable/safe to simply close the Engine, EDBEngine.Close, or is it better to close the DataSets/Database/Session/Engine in order?

Or, doesn't it matter one-way or the other?

Just curious.

Regards,
Ian
Wed, Apr 3 2019 2:24 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Ian


Most of the time I'll just let the app (or form)  close and let it sort out what needs to be closed in what order. The only time I bother about things is in the case of some databound controls where there is an OnChange event and I have to add code to stop the control reacting to the table going AWOL

Roy Lambert
Thu, Apr 4 2019 10:24 PMPermanent Link

Steve Gill

Avatar

Hi Ian,

<< Given the normal EDB configuration - Engine/Session/Database/DataSets.

And assuming one or more DataSets are Open.

When closing an App, is it acceptable/safe to simply close the Engine, EDBEngine.Close, or is it better to close the DataSets/Database/Session/Engine in order?

Or, doesn't it matter one-way or the other? >>

You only need to close the engine, but I close all of them in order like you listed because I'm fussy.  Smile

= Steve
Fri, Apr 5 2019 3:54 AMPermanent Link

Malcolm Taylor

I am with Steve on this.

I just had a quick look in the help but could not find it, however I do
remember Tim writing somewhere that closing the Engine will first close
anything else still connected.

In spite of that I do specifically Close the Database then Session then
Engine while I imagine Tim rolling his eyes!

But if I had stuff open/active in the IDE for some reason, I simply
Close the Engine before closing the project.

Malcolm
Mon, Apr 8 2019 1:06 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Ian,

<< When closing an App, is it acceptable/safe to simply close the Engine, EDBEngine.Close, or is it better to close the DataSets/Database/Session/Engine in order?

Or, doesn't it matter one-way or the other? >>

Typically, it doesn't matter, but my preference would be for either just closing the TEDBEngine component or closing things in order.

Tim Young
Elevate Software
www.elevatesoft.com
Image