Article View: borland.public.cppbuilder.database.ado
Article #4303Re: CodeGuard problem creating TADODataSet in code
From: Jurko
Date: Tue, 05 Feb 2002 14:12
Date: Tue, 05 Feb 2002 14:12
48 lines
2255 bytes
2255 bytes
Classic codeguard and ADOExpress incompatibility... don't really know that
there is or isn't a memory leak, but there doesn't seem to be much you/I can
do
about it...
I believe it to be a codeguard bug because of the following example:
If you open an ADO connection using its Open() method CodeGuard reports
a similar error report but if you open it using its Connected property it
says that
everything is ok, even though changing the Connected property only calls the
Connection object's Open() method.
HTH,
Jurko
"Markus" <kemetter@mbnet.fi> wrote in message news:3c5e51b2$1_2@dnews...
>
> Hi,
>
> I'm creating a TADODataSet like this:
>
> TADODataSet *MyDataSet = new TADODataSet(this); // tried this also
with
> NULL as argument, same result
>
> Works fine but when switching codeguard on it stops on the constructor of
> TADODataSet in ADODB.hpp:
>
> /* TCustomADODataSet.Create */ inline __fastcall virtual
> TADODataSet(Classes::TComponent* AOwner) :
> TCustomADODataSet(AOwner) { }
>
> and says:
>
> Error 00043. 0x130C10 (Thread 0x05AC):
> Method called on illegally casted object: Attempt to access 584 byte(s) at
> 0x01176B74. The 'this' pointer points to heap block 0x01176B74 which is
> only
> 580 bytes long.
>
>
> Any ideas?
>
> Markus
>
>
>
Technical Details
Message-ID:
<i2po3a.c2l.ln@news.ve-mil.hr>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!news.ve-mil.hr!nobodyReferences:
<3c5e51b2$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,8bfdf5e66f34a8ea X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-02-05 06:29:31 PST From: "Jurko" <Jurko@ve-mil.hr> Newsgroups: borland.public.cppbuilder.database.ado References: <3c5e51b2$1_2@dnews> Subject: Re: CodeGuard problem creating TADODataSet in code Date: Tue, 5 Feb 2002 15:12:46 +0100 Lines: 50 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <i2po3a.c2l.ln@news.ve-mil.hr> NNTP-Posting-Host: 195.29.221.130 X-Trace: dnews 1012918574 195.29.221.130 (5 Feb 2002 06:16:14 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news-x2.support.nl!newsfeed.frii.com!out.nntp.be!propagator-SanJose!in.nntp.be!newsfeed01.tsnz.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews!news.ve-mil.hr!nobody