🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: CodeGard Error

#5997
From: Stefan Schuster-Teupke
Date: Thu, 14 Dec 2000 09:29
43 lines
2066 bytes
Hi,

I faced exactly the same problem yesterday:

It's a question of data alignment. By default CBuilder uses QUADWORD,
and what you need here is BYTE. At least then CodeGuard stops complaining.
You will find it in Project / Options / Advanced compiler / data alignment.

Regards

Stefan

"Larry D." <LCalkins@rmci.net> schrieb im Newsbeitrag
news:3a356cec_1@dnews...
> When I open a ADOConnection CodeGuard reports a error.  The code is
somewhat
> as follows.
>
>   DBConn = new TADOConnection (Application);
>   DBConn->ConnectionString = ConnStr;
>   DBConn->Open ();
>
>    When the code to open the ADOConnection CodeGuard reports this error:
>
>   "Method called on illegally casted object"
>         Attempt to access 216 byte(s) at 0x015c6c10. The 'this' pointer
> points to heap block 0x015c6c10 which is only 212 bytes long.
>
>
>    This appears the ADOConnection object is larger by 4 bytes than what is
> actually allocated by the system.  Is there some inconsistency with the
> header and the object files for ADO.
>
>     I have installed the most recent patches from Code Cental that is
dated
> '10/13/2000'
>
>     Any help in this is most appreciated.
>
>    Larry;
>
>
>
Technical Details
Message-ID: <91a3rh$1dl3@bornews.inprise.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
References: <3a356cec_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,86b968748775f27a
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2000-12-14 01:31:43 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!bornews.borland.com!not-for-mail
From: "Stefan Schuster-Teupke" <s.schuster@manigroup.com>
Newsgroups: borland.public.cppbuilder.database.ado
Subject: Re: CodeGard Error
Date: Thu, 14 Dec 2000 10:29:20 +0100
Organization: Mania GmbH & C.
Lines: 45
Message-ID: <91a3rh$1dl3@bornews.inprise.com>
References: <3a356cec_1@dnews>
NNTP-Posting-Host: 195.127.177.234
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