I recently started translating a small platformer game from C# to C++ as a school project. The game works perfectly fine when I run it in debug and release mode in Visual C++, but when I run the .exe in the release folder it crashes after 1 second. It only shows a frozen image of the game and then instantly crashes. I copied the game data such as textures and music to the release folder so it's not missing any files. I figured out that it can't be caused by DirectX either because it shows all the textures, but frozen, so it's not getting through the update function. For sounds I'm using the FMOD library. I copied the dll into the release folder of the game and even tried removing the whole sound system from the game, but it's still crashing. Once again, everything works fine when I run the game inside Visual C++. Any idea what's causing the crash?