Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » DBISAM Technical Support » Support Forums » DBISAM General » View Thread |
Messages 1 to 6 of 6 total |
Adding TDBISAMSession Blows Up My App |
Tue, Jun 5 2007 7:12 PM | Permanent 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 PM | Permanent 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 AM | Permanent 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 AM | Permanent Link |
Roy Lambert NLH Associates 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 Roy Lambert |
Wed, Jun 6 2007 2:03 PM | Permanent 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 > > Roy Lambert > |
Wed, Jun 6 2007 4:30 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Neil,
<< Is this approach good ??? >> Yes, that will work just fine. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Monday, April 29, 2024 at 05:23 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |