Posted by Cromulent
on 05 November 2012 - 12:35 PM
Hmmm... I haven't done anything like this since the 90s, when you would just run without an OS, using the VESA standard for graphics (sound was trickier). If I had to do something like this these days, my first thought would be to make a custom Linux distribution that only runs the game. Arch Linux seems like a good place to start.
Although using Linux might not be an option due to the GPL if this is a commercial venture. FreeBSD would be a better choice from a commercial point of view.
Regarding setting the pointer to null after deletion this is something I absolutely disagree with and is just inviting bugs to linger in your codebase. By setting to null you won't catch any double delete errors, etc which would be found and handled easily by attempted to delete something that has already been deallocated.
This is something that is important in C so many C programmers carry this habit over to C++.
Windows 8 is a sign that Micro$oft is up to their old empire-building tricks again. I've actually considered moving to Linux, and I *Hate* the GPL. (It's not free software. It's masquerading as free software, but it's not - You pay with your entire code base)
There's other OS's, but they're not that complete, I've found, and I'm not an OS programmer. OTOH, if someone kickstartered a Modern non-Licenseware OS, it may be the first kickstarter project I put money in.
Use FreeBSD or OpenBSD if you don't like the GPL. Both are complete and very stable and BSD licensed which allows you to do pretty much anything you want with the code as long as you supply a small bit of license text along with your binaries.