The wrong calling convention usually corrupts memory and causes an error after the actual call itself. So it's possible that there was just a bit more code in debug and it had more chance to throw an error. It can be a real SOB to debug incorrect calling conventions, so you probably got off lightly with several hours. I know I've done worse.