Article View: borland.public.cppbuilder.database.ado
Article #4297CodeGuard problem creating TADODataSet in code
From: Markus
Date: Mon, 04 Feb 2002 09:17
Date: Mon, 04 Feb 2002 09:17
27 lines
1461 bytes
1461 bytes
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:
<3c5e51b2$1_2@dnews>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnewsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10698b,8bfdf5e66f34a8ea,start X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2002-02-04 01:20:40 PST From: "Markus" <kemetter@mbnet.fi> Newsgroups: borland.public.cppbuilder.database.ado Subject: CodeGuard problem creating TADODataSet in code Date: Mon, 4 Feb 2002 11:17:06 +0200 Lines: 30 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 NNTP-Posting-Host: 193.229.211.1 Message-ID: <3c5e51b2$1_2@dnews> X-Trace: dnews 1012814258 193.229.211.1 (4 Feb 2002 01:17:38 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews