While researching this issue, I found multiple mentions of the following scenario online, invariably as unanswered questions on programming forums. I hope that posting this here
Use Application Verifier to figure out what's going on, if you do something suspicious, it will catch it much earlier.