GetLastError()=0 - page 2

 
diatrochoi:

Thanks a lot, I get it now :))

I have one more question. In my original code, as long as new ticks are received but the conditions are not fulfilled, I should see multiple messages saying GetLastError()=0. The thing is that I always only see one such message and then that's it. What could possibly be the reasons here?

Don't try and work out why broken code doesn't perform in the way you think it should, fix it and move on to the next error, it's a fix test, fix, test, cycle.
Reason: