Different behaviour when debugging or executing the exe

  • I have detected a different behaviour when loading a document in debugging mode or executing the compiled file.
    In debugging mode, the file loads correctly, but executing the compiled file, it loads only strange characters.
    As the RTF file used to test is very small, I am inserting it below.
    I want to know what is the difference, and how can I solve it.

    {\rtf1\ansi\ansicpg256{\fonttbl{\f0\fnil Tahoma;}}{\colortbl\red0\green0\blue0;}\uc0 \ql\f0\fs24 \par\par\par\par\par\par \par \par\par \fs32 [NOMAPLL]\par\par \fs28 [ALER][PATO]\fs24 [TOX][GINE][QUIR]\par\par \fs28 [CURSO]}