As far as I remember it does stay as -1 forever. It happened once during development and the only way I could remove it was to delete it manualy from the buffer at its real memory address. I can't work out where the -1 is comming from, although I suspect it something in the modem firmware. Power is not that stable where the modem and machine are housed (but it is the only place where a good signal is availble), so power interuptions are not too uncommon. Because of this and network drops due to maintainance at weekends I retain all messages if the network connection fails and reboot the PC twice a day and at this point it processes and deletes messages stored in the buffer if network is available.
On Oct 8, 10:42 am, Thanasis <[EMAIL PROTECTED]> wrote: > Never heard of such a thing... > > Does this (mem:-1) message stay as (-1) for ever? If you reboot the > modem, did you noticed whether it appears as a normal message? > > On Oct 7, 5:38 pm, weals <[EMAIL PROTECTED]> wrote: > > > Hello Thanasis > > > I call deleteMesage() in a for-loop from 0 to 10 (couldn't remember if > > the index started at 1 or 0, but it dosn't seem to complain about non- > > existant locations). > > Calling deleteMessage() with an index of -1 leaves the message > > untouched. This is a low use service at present (only a handfull of > > SMS messages a week). > > For clarification I am using a Fargo-Maestro 20 modem and Win XP as an > > OS. I am using the SIM memory only to store texts and delete them > > from the SIM after processing them. > > > Many thanks > > Paul > > > On Oct 7, 1:57 pm, Thanasis <[EMAIL PROTECTED]> wrote: > > > > Hello Paul, > > > > how do you "purge the buffer"? Do you mean that you call the > > > deleteMessage() with a message of -1 index? > > > > On Oct 7, 2:12 pm, weals <[EMAIL PROTECTED]> wrote: > > > > > Hi > > > > I have been using SMSlib for some time for incoming messages (helpdesk > > > > requests). It has been working fine except occasionaly it gets a > > > > message with a reported memory index of -1. As this is not a real > > > > address the message stays in the buffer and is read on each reboot. > > > > It would appear that this occurs if a message is recieved at the time > > > > of a reboot. I have got round this by purging the buffer after > > > > reading all current messages, if a memory index of -1 is found. > > > > > Has anybody else experienced this? > > > > > Many Thanks > > > > Paul- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SMSLib Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/SMSLib?hl=en -~----------~----~----~----~------~----~------~--~---
