C++Talk.NET Forum Index C++Talk.NET
C++ language newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Les types wchar_t ,widestring ,TADOConnect ,CODEGUARD et BCB

 
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French)
View previous topic :: View next topic  
Author Message
Olivier Sarda
Guest





PostPosted: Fri Apr 23, 2004 8:41 am    Post subject: Les types wchar_t ,widestring ,TADOConnect ,CODEGUARD et BCB Reply with quote



Bonjour
je developpe sous WinXp + Sp1 et BCB6 pro + patch 4
J'ai un composant TAdoConnect qui me permet d'attaquer un sgbd de type
access 2000 .
Le probleme est que quand j'active CodeGuard dans les options du projet
a l'execution de mon prog j'ai un message d'erreur du type
en faisant ceci:

Code:
AnsiString s ="c:\Mabase\test.mdb";
ADOConnect->ConnectionString=s;


Error 00106. 0x130C10 (Thread 0x0B98):
Method called on illegally casted object: Attempt to access 224 byte(s) at
0x00DB84FC. The 'this' pointer points to heap block 0x00DB84FC which is only
220 bytes long.
Call Tree:
0x004031AA(=Etik2.exe:0x01:0021AA) c:cbuilderincludevclADODB.hpp#277
0x004030EF(=Etik2.exe:0x01:0020EF)
D:TravailProjetsCppEtik2TDataEtik2.cpp#48
0x0040376E(=Etik2.exe:0x01:00276E)
D:TravailProjetsCppEtik2TDataEtik2.cpp#118
0x0040476F(=Etik2.exe:0x01:00376F) D:TravailProjetsCppEtik2TCtrl.cpp#74
0x00402267(=Etik2.exe:0x01:001267)
D:TravailProjetsCppEtik2TMainForm.cpp#34
0x400F0655(=vcl60.bpl:0x01:03F655)

The memory block (0x00DB84FC) [size: 220 bytes] was allocated with SysGetMem
Call Tree:
0x40002FCF(=rtl60.bpl:0x01:001FCF)
0x40030CAE(=rtl60.bpl:0x01:02FCAE)
0x40030EFA(=rtl60.bpl:0x01:02FEFA)
0x40030E39(=rtl60.bpl:0x01:02FE39)
0x40037F22(=rtl60.bpl:0x01:036F22)
0x4002EE8B(=rtl60.bpl:0x01:02DE8B)


J'ai essaye de declarer en WideString s ou wchar_t
pas de succes j'aimerais savoir plus
ou est mon erreur ?

si je desactive CodeGuard cela fonctionne mais
j'aimerais en savoir plus

merci de vos idees en conseils
que dois je faire ?

_________________
Cordialement,
Sarda Olivier



Back to top
Display posts from previous:   
Post new topic   Reply to topic    C++Talk.NET Forum Index -> C++ (French) 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.