Delphi 10. String not compiling properly (No crash, Possibly a glitch?) : Today I stumbled upon something mysterious. This line of code:


    showmessage(menuMain.player[2] + ' ready!');

Generates this message (For example menuMain.player[2] = Player):

> Player

But if I put code this way (For example menuMain.player[2] = Player):


    showmessage('Test: ' + menuMain.player[2]);

It will generate this message:

> Test: Player

I do honestly believe this is a compiler glitch, because I have EXACT same line in the other block of code, and it works flawlessly.

Now the tough part for me, is that me being dumb, or this is indeed a glitch?

Professional help required :P

Thanks in advance for help! :)