BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

DECLARE_VCL_CONTROL_PERSISTENCE CodeGuard Error

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX)
View previous topic :: View next topic  
Author Message
tainshy
Guest





PostPosted: Tue Jul 12, 2005 12:00 pm    Post subject: DECLARE_VCL_CONTROL_PERSISTENCE CodeGuard Error Reply with quote



CodeGuard is complaining that DECLARE_VCL_CONTROL_PERSISTENCE is
illegally casting.

Line 318 of EditorImp1 (see CodeGuard log below) is:
DECLARE_VCL_CONTROL_PERSISTENCE(TEditorXImpl, TEditorX);

I am guessing that this is an error somewhere in the cbuilder standard
code. Is there something I can do to fix this error or is it ok to
accept this? Everything seems to be working as it is.

CodeGuard log:
Error 00001. 0x130C10 (Thread 0x0D6C):
Method called on illegally casted object: Attempt to access 128 byte(s)
at
0x01147954. The 'this' pointer points to heap block 0x01147954 which
is only
124 bytes long.
Call Tree:
0x01B98184(=EditorProj1.ocx:0x01:027184) d:program
filesborlandcbuilder6includevclClasses.hpp#1752
0x01B980AB(=EditorProj1.ocx:0x01:0270AB) d:program
filesborlandcbuilder6includeatlatlvcl.cpp#138
0x01B8F2DA(=EditorProj1.ocx:0x01:01E2DA) d:program
filesborlandcbuilder6includeatlatlvcl.h#642
0x01B8A0B6(=EditorProj1.ocx:0x01:0190B6)
U:GemproprojectsEditorEditorImpl1.h#318
0x01B7D78D(=EditorProj1.ocx:0x01:00C78D) d:program
filesborlandcbuilder6includeatlatlcom.h#738
0x4016F57D(=vcl60.bpl:0x01:0BE57D)

The memory block (0x01147954) [size: 124 bytes] was allocated with
SysGetMem
Call Tree:
0x01CDDF7F(=EditorProj1.ocx:0x01:16CF7F)
0x01B980AB(=EditorProj1.ocx:0x01:0270AB) d:program
filesborlandcbuilder6includeatlatlvcl.cpp#138
0x01B8F2DA(=EditorProj1.ocx:0x01:01E2DA) d:program
filesborlandcbuilder6includeatlatlvcl.h#642
0x01B8A0B6(=EditorProj1.ocx:0x01:0190B6)
U:GemproprojectsEditorEditorImpl1.h#318
0x01B7D78D(=EditorProj1.ocx:0x01:00C78D) d:program
filesborlandcbuilder6includeatlatlcom.h#738
0x4016F57D(=vcl60.bpl:0x01:0BE57D)

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (ActiveX) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.