Quote: "This problem appears when i execute the file without darkbasic pro compiler. When i press build compile and run, it works fine. Do you know what causes this?"
Sounds like you are running the old version when you run the exe without the compiler.
Perhaps you've forgotten to save the new version of the project before running the new exe. I think the editor doesn't update the exe disk copy till you've done that. You might need to exit DBPro first as well (untested).
It's not a bug - just the way the editor works.