Expression illegal in evaluator (& Access Violation)

前端 未结 2 378
情话喂你
情话喂你 2021-01-29 13:25

Im trying to process a plain text file (loaded into a StringList), by using class Tbb2uc but getting AV at calling function GetAddress.

  TArrayQuotePositions =          


        
2条回答
  •  终归单人心
    2021-01-29 13:45

    You are accessing your stringlist out of bounds.

    for i := 0 to SlInput.Count -1 do begin
    
     // ...(etc)
    
          addr := GetAddress(SlInput[i+2]); 
    

    i is running to the full size of the list. You are indexing two higher than that.

提交回复
热议问题