|
안녕하세요? 개박살입니다.
흠.. 별로 특히한 부분은없군요..
근데 메모리 에러라면 실행시에 어디서 걸리는지는 체크되지않나요?
디버그 모드로 STOP LINE을 잡아서 그부분을 하나씩 넘어가면서 보셔보세요..
글구 혹시 라도 ^^;
보통 TableOpen 시에는 ..
Dm001->Table1->Active = true; 이렇게 하지않고요
Dm001->Table1->Open();
if(Dm001->Table1->Active) ShowMessage("Open Sucesss");
else ShowMessage("Open Fail" );
즉, Active는 Open성공여부를 판가름할때 쓰이고요.. 뭐 이렇게 쓰나 저렇게 쓰나 똑같지만 ^^;
글구
: SIpN = IpToL(IpGrid->Cells[3][Row_Cnt]);
: FIpN = IpToL(IpGrid->Cells[4][Row_Cnt]);
요부분.. 의심 가네요.. 보통 컨버트시에 Exception이나 메모리블럭이 걸리던데..
컨버트 코딩시에는 Exception을 꼭잡아주세요 그래야 안정성이..
IpToL은 사용자 함수이죠?
흠.. 그럼 성공하시길...
강재호 님이 쓰신 글 :
: 안녕하세요~
:
: 만해입니다.
:
: 어제 에러에 관해서 글을 올렸더니
:
: 소스를 요청 하셔서 소스 올립니다.
:
: 부디 고수님들의 도움 바랍니다.
:
: void __fastcall TForm1::Button4Click(TObject *Sender)
: {
: int Row_Cnt =0; // Column Count;
: unsigned long int SIpN;
: unsigned long int FIpN;
:
: Dm001->Table1->Active = true;
:
: for (Row_Cnt=1 ; Row_Cnt < IpGrid->RowCount ; Row_Cnt++ )
: {
: SIpN = IpToL(IpGrid->Cells[3][Row_Cnt]);
: FIpN = IpToL(IpGrid->Cells[4][Row_Cnt]);
:
: Dm001->Table1->Insert();
: Dm001->Table1->FieldByName("ComName")->AsString =IpGrid->Cells[1][Row_Cnt];
: Dm001->Table1->FieldByName("EComName")->AsString =IpGrid->Cells[2][Row_Cnt];
: Dm001->Table1->FieldByName("SIp")->AsString =IpGrid->Cells[3][Row_Cnt];
: Dm001->Table1->FieldByName("FIp")->AsString =IpGrid->Cells[4][Row_Cnt];
: Dm001->Table1->FieldByName("RDate")->AsString =IpGrid->Cells[5][Row_Cnt];
: Dm001->Table1->FieldByName("SIpN")->AsInteger = SIpN;
: Dm001->Table1->FieldByName("FIpN")->AsInteger = FIpN;
: Dm001->Table1->Post();
: }
: Dm001->Table1->Active = false;
: }
: 이건 테이블에 자료 저장 하는 부분이고요
:
: 나머지 부분에서 Table를 건드리는건
:
: 그냥 Dm001->Table->Active = true | false;
:
: 이거 말고는 없습니다.
:
: 고수님들의 답변 바랍니다.
|