@kingsize thank you.
I think you're a pro and I'm just a newbie, I'm here trying to learn and I think I'm in the wrong place.
Is there anyone who can direct me to tutorials or forums where I can find my answer.
Thank you as same
I am running a compiled script on a VPS, so sometimes it shuts down by itself after a few minutes, sometimes after a few hours.
No one should try to find an error in my script because I am running the same script on my PC without compiling it and it has been working regularly.
Have you tried running the project with compilation on your PC? Maybe the same thing would happen there.