"Invalid pointer operation" means you freed memory that didn't belong to you. One of these three things is the cause: Your program freed something ...
www.google.com.tw