Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread Closing an Application??
Thu, Jan 4 2024 2:59 PMPermanent Link

Ian Branch

Avatar

Hi Team,
I have historically, when closing an Application, closed TEDBDatabase, TEDBSession and TEDBEngine, in that order.
It can do no harm.
I am curious though, if I just close TEDBEngine, will it gracefully close TEDBDatabase & TEDBSession?  Or just go 'thump!'?

Just curious.
Ian
Tue, Jan 16 2024 2:26 PMPermanent Link

Olybino

It should close gracefully.

However, I have just run into a situation where if I use the Databasename property on the TEDBDatabase component, it throws an exception saying the database already exists, because the TEDBSession components refer to it by that alias.

I've asked Tim about it, but for now the bypass seems to be change the sessions to use the real database name and not the alias.
Wed, Jan 17 2024 11:19 AMPermanent Link

Olybino

I wasn't clear, when the TEDBEngine is shutting down, the attached TEDBDatabase component is raising the exception about the use of the Databasename field, and that shouldn't be happening. It's not clear to me why when shutting down it's attempting to validate that the session is correct. Waiting for Tim's response in email.

Olybino wrote:

It should close gracefully.

However, I have just run into a situation where if I use the Databasename property on the TEDBDatabase component, it throws an exception saying the database already exists, because the TEDBSession components refer to it by that alias.

I've asked Tim about it, but for now the bypass seems to be change the sessions to use the real database name and not the alias.
Image