|
ADO컴포넌트 쓰려고 하는데.. 모르는게 너무 많네요.. ^^
for(int i = 0; i < pNumber; i++)
{
try
{
lpADOConnect[i] = new TADOConnection(Application);
lpADODataSet[i] = new TADODataSet(Application); // 여기서 에러................
lpADOConnect[i]->Mode = cmReadWrite;
lpADOConnect[i]->ConnectionString = "................";
lpADODataSet[i]->Connection = lpADOConnect[i];
}
__finally
{
}
}
코드가드로 돌리니깐 최종 에러 지점이 ADODB.hpp의 965번째줄입니다..
inline __fastcall virtual TADODataSet(Classes::TComponent* AOwner) : TCustomADODataSet(AOwner) { }
Error 00001. 0x130C10 (Thread 0x08D0):
Method called on illegally casted object: Attempt to access 608 byte(s) at
0x03889970. The 'this' pointer points to heap block 0x03889970 which is only
604 bytes long.
|