You need to call DeleteTimer(ptExpire) before this line or the timer can be left dangling and will lead to server errors.