• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 19, 2024, 11:41:30 am

News:

SMF - Just Installed!


List out of bounds (-1)

Started by henry64, January 05, 2010, 04:15:03 pm

Previous topic - Next topic

henry64

January 05, 2010, 04:15:03 pm Last Edit: January 05, 2010, 04:18:47 pm by henry64
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