🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #5699

Access violation in msjet40.dll when only run from IDE

#5699
From: Zitt
Date: Sun, 18 Mar 2001 20:09
22 lines
1386 bytes
Hi all

My code like this

TADOQuery *qry = DataModule->ADOQuery1;
 if(qry->Active)
  qry->Active = false;
 qry->SQL->Clear();
 qry->SQL->Add("Select count(value) as maxvalue");          <-------Access
violation
 qry->SQL->Add("from Table1");
 qry->Active = true;
 AnsiString sz = qry->FieldByName("maxvalue")->AsString;

I use jet 4.0 as driver.

It occur Access violation in msjet40.dll when only run from IDE
but when run standalone notthing happend !! when I change driver to be ODBC
everything correct.
 Why ???

Zitt
Technical Details
Message-ID: <3ab51750_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!newspump.sol.net!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews!158.108.12.243

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,360c1e7eaae8b40b,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-03-18 12:42:07 PST
From: "Zitt" <zitt@se-ed.net>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Access violation in msjet40.dll when only run from IDE
Date: Mon, 19 Mar 2001 03:09:05 +0700
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
NNTP-Posting-Host: 158.108.12.243
Message-ID: <3ab51750_1@dnews>
X-Trace: 18 Mar 2001 12:15:12 -0800, 158.108.12.243
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!zeus.visi.com!hermes.visi.com!news-out.visi.com!newspump.sol.net!hammer.uoregon.edu!feed.textport.net!news.bnb-lp.com!dnews!158.108.12.243