using tinyGPS++ with millis errors

Hi i am trying to make search GPS(using tinGPSplus) every x time. The probleme is when i do compile the code : void loop() { read=BP_mnger.pressedButton(); navigateMenus(read); dealWithUsedEvents(getmenuUsed()); setmenuUsed(0);

if (isStarted && (GPSSearchPeriod<=millis()-oldMillisVallue)) {

oldMillisVallue=millis();// if i comment this line it works
Serial.print(F("oldMillisVallue: "));
Serial.println(oldMillisVallue);
while (ss.available() > 0){
if (gps.encode(ss.read()))
if (gps.location.isUpdated() || gps.date.isUpdated() || gps.time.isUpdated() || gps.altitude.isUpdated()
|| gps.satellites.isUpdated() || gps.hdop.isUpdated()) GPSSentence=makeGPSSentence( ); }

}
i get this :

oldMillisVallue: 22355
oldMillisVallue: 24356
oldMillisVallue: 26357
oldMillisVallue: 28358
oldMillisVallue: 30359
when i comment

oldMillisVallue=millis();// if i comment this line it works
i get this :

oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
2000,0,0,4294967295,15,43,3,36,5,41,4.066298,48.269157,77,0.12,90,380,98,2,1,3
2000,0,0,4294967295,15,43,3,39,5,43,4.066298,48.269157,79,0.122200,92,380,98,2,1,3

oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0

oldMillisVallue: 0
oldMillisVallue: 0
2000,0,0,4294967295,15,43,4,39,5,43,4.066265,48.269126,80,0.12,94,380,101,3,2,5
2000,0,0,4294967295,15,43,4,41,5,45,4.066265,48.269127,82,0.121900,94,380,103,3,2,5

oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0
oldMillisVallue: 0

Please read the "How to use this forum" post and follow the directions. Edit your post to add code and comment tags.

kamel: Hi i am trying to make search GPS(using tinGPSplus) every x time.

I wonder how many people reading the forum know what you mean by that ?

Since I suppose you know, can you explain for the rest of us ?