If the game is crashing when you call specific game functions you should look at exactly where it is crashing, you may need to initialize your own threads in a different way.
(04-12-2021 - 12:36 PM)Polarize Wrote: If the game is crashing when you call specific game functions you should look at exactly where it is crashing, you may need to initialize your own threads in a different way.
What exactly do you mean "you need to initialize the thread in a different way."?
What I mean is the game itself creates and closes thread in a specific way so that's why creating your own and accessing game functions/data can cause a crash. You need to create a thread the same way the game does.
Refer to this github for a different example of creating threads