Which API function failed? And how did you check it had failed? I don't see any checking the functions calls! :confused: