Why my code works only in debug mode?

Printable View