🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Problem with TADOConnection

#1847
From: Miguel Q Moraes
Date: Fri, 23 Jan 2004 13:00
19 lines
1872 bytes
I have an application that periodically writes some stuff to a database
using a TADOConnection to connect to it. It connects to the db, runs a
stored procedure and then disconnects. After a few times doing this, the
program just gets dumped from memory when I set ADOConnection->Connected =
TRUE. Any ideas? I even tried creating the TADOConnection object each time I
need to connect and delete it afterwards, but I still have the same problem.
Another thing is that if I try to call the Open method for that object (
ADOConnection->Open() ) CodeGuard reports an error: "Method called on
illegally casted object. Attempt to access 224 bytes at 0x00E4F208. The
'this' pointer points to heap block 0x00E4F208 which is only 220 bytes
long." at this line of code in ADODB.hpp:

    inline void __fastcall  Open(void){ TCustomConnection::Open(); }

Is there a bug in this class (maybe some error during BCB install) or am I
doing something wrong? Have you seen this happen before?

Thanks
Miguel
Technical Details
Message-ID: <40111afc@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,60d937de94230ead,start
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2004-01-23 05:10:14 PST
From: "Miguel Q Moraes" <miguel@globaltrac.com.br>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Problem with TADOConnection
Date: Fri, 23 Jan 2004 11:00:35 -0200
Lines: 21
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 139.82.111.130
Message-ID: <40111afc@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1074862844 139.82.111.130 (23 Jan 2004 05:00:44 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail