Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 6 of 6 total
Thread Adding TDBISAMSession Blows Up My App
Tue, Jun 5 2007 7:12 PMPermanent Link

"Huhtaman"
Hello All:


   I tried to do a rather elementary thing - and it has killed my
application.

   I added a TDBISAMSession - and now - my application cant access its data
so it crashes.

   My app is DBISAM Version 1 built in Delphi 5 - so it is a file sharing
application.

   When I attempt to open a file - it crashes with an invalid path to file
error.

   I have a TTable hooked to a database - then hooked to a session.

   I set the session to inactive
   I set the privatedir of the session
   I set the session to active

   I set the TDBISAMDatabase to inactive
   I set the TDBISAMDatabase Directory to the correct location of the data
   I set the TDBISAMDatabase to active

   Then I try to set the Table to active and kaboom I get the error.

   What have I done wrong ???

Neil Huhta



Tue, Jun 5 2007 7:39 PMPermanent Link

"Huhtaman"
Hello All:

   After playing around I figured out that I needed to set the session
property of each table.

   This seemed like a huge effort - and an error prone process.

   Since I am not multi-threading access - I decided to use the default
session instead of creating a specific session.

   Therefore, I am now just setting Session.Privatedir

   Is this approach good ???

Thanks


Neil Huhta











"Huhtaman" <nhuhta@digital.net> wrote in message
news:3F8FFB06-8038-4153-9A1C-7DD22B3E7FB9@news.elevatesoft.com...
> Hello All:
>
>
>    I tried to do a rather elementary thing - and it has killed my
> application.
>
>    I added a TDBISAMSession - and now - my application cant access its
> data so it crashes.
>
>    My app is DBISAM Version 1 built in Delphi 5 - so it is a file sharing
> application.
>
>    When I attempt to open a file - it crashes with an invalid path to file
> error.
>
>    I have a TTable hooked to a database - then hooked to a session.
>
>    I set the session to inactive
>    I set the privatedir of the session
>    I set the session to active
>
>    I set the TDBISAMDatabase to inactive
>    I set the TDBISAMDatabase Directory to the correct location of the data
>    I set the TDBISAMDatabase to active
>
>    Then I try to set the Table to active and kaboom I get the error.
>
>    What have I done wrong ???
>
> Neil Huhta
>
>
>
>

Wed, Jun 6 2007 6:17 AMPermanent Link

"Jose Eduardo Helminsky"
Huhtaman

>    Since I am not multi-threading access - I decided to use the default
> session instead of creating a specific session.
>    Therefore, I am now just setting Session.Privatedir
>    Is this approach good ???

There is no good or bad approach in use default session. You just need to
use a non-default session basically if your application is multi-thread.

To use non-default: Think in this sequence:

1) Session
2) Databases
3) Datasets (tables and queries)

Eduardo

Wed, Jun 6 2007 6:56 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Huhtaman


That's what I do in the main thread of my app. OK V4 not V1 but I don't think there should be a problem.

ps: what's it like working with antique software Smiley

Roy Lambert
Wed, Jun 6 2007 2:03 PMPermanent Link

"Huhtaman"
Thanks everybody,

   Whats it like using antique software ???

   Well - its like driving a classic muscle car - you appreciate the
simplicity and raw power of the beast.


Neil



"Roy Lambert" <roy.lambert@skynet.co.uk> wrote in message
news:F5BD0015-7024-4A68-81DB-599891D6CE3B@news.elevatesoft.com...
> Huhtaman
>
>
> That's what I do in the main thread of my app. OK V4 not V1 but I don't
> think there should be a problem.
>
> ps: what's it like working with antique software Smiley
>
> Roy Lambert
>

Wed, Jun 6 2007 4:30 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Neil,

<< Is this approach good ??? >>

Yes, that will work just fine.

--
Tim Young
Elevate Software
www.elevatesoft.com

Image