The function failed because an invalid pointer parameter was passed to it. A pointer parameter is invalid if it is NULL, ...