Maybe I am missing something, but happens if you do not get a successful lock within the 25 tries and lnCompteur > 25? I don't see any error-trapping.
Michael Meinberg
Tamtech, Inc
"The amount of things that I know nothing about is alarmingly increasing."