🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.multi-tier
Article #894

Database from non-VCL apps.

#894
From: Mario P�rez
Date: Wed, 27 Dec 2000 18:59
36 lines
1851 bytes
I've made a console application wich read a paradox table and it seems to
work fine. But after a long time of no utilization, application fails to
open the table. I must open any VCL-based application and open any table,
and then my console application works fine again. It seems like if BDE shuts
down and any action is required in order to restart it...

This is the source code of my program (that I use as CGI). The code has been
simplified a lot:

------------------------------------------------
int main(int argc, char* argv[])
{
  TTable *Table;
  TForm *Form;

  Application->Initialize();
  Form=new TForm(Application);
  Table=new TTable(Form);

  Table->DatabaseName="c:\\myData";
  Table->TableName="myTable.db";
  Table->Active=true;
  Table->First();

  AnsiString out=Table->FieldValues["myField"];
  printf("First myField value: %s",out.c_str());
  return 0;
}
-------------------------------------------------

Any suggestions will be appreciated!!!

Thank you in advance!!!

Mario P�rez
www.oiram.com
Technical Details
Message-ID: <3a4a3c46_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!213.220.33.194

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: fcd2b,bd8fc631e154fdd5,start
X-Google-Attributes: gidfcd2b,public
X-Google-ArrivalTime: 2000-12-27 11:10:29 PST
From: "Mario P�rez" <oiram@oiram.com>
Newsgroups: borland.public.cppbuilder.database.multi-tier
Subject: Database from non-VCL apps.
Date: Wed, 27 Dec 2000 19:59:24 +0100
Lines: 38
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2615.200
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200
NNTP-Posting-Host: 213.220.33.194
Message-ID: <3a4a3c46_1@dnews>
X-Trace: 27 Dec 2000 11:00:22 -0800, 213.220.33.194
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!newsfeed.online.be!newsfeeds.belnet.be!naxos.belnet.be!news.belnet.be!bornews.borland.com!dnews!213.220.33.194