Author Topic: List out of bounds (-1)  (Read 1273 times)

henry64

  • Jr. Member
  • **
  • Posts: 89
    • View Profile
List out of bounds (-1)
« on: January 05, 2010, 06:15:03 pm »
When the GSM have been running for some time I get an exception List index out of bounds (-1) in this procedure.

procedure TnrGsm.UpdateSignalInfo;
begin
  if CmdSendAndWaitByDriver(CID_GSM_GET_STATUS_SIGNAL) and (not ReplyLast.IsError)
    then DoUpdateSignalInfo(String(ReplyLast.sDataUseful),Driver.Command[ReplyLast.idDriverCmd]);
end;

The application polls for signalquality every 30 sec. but does nothing else - the connection stays open.

I have captured the exception
[05-01-2010 19:16:18] nrGsm: CmdSendAndWaitByDriver Error: List index out of bounds (-1), cmdid 209, j: -1   



« Last Edit: January 05, 2010, 06:18:47 pm by henry64 »