homeBlog | Tags | Archives | Projects | Search | Stats | Contact

Out of Memory?

Aug 19, 2008

no comments
Popularity: 0%

It’s a common practice not to check what malloc() or new returns, since in an ideal world you will never run out of memory and so allocating memory will never fail. With a reasonably sized page file that is mostly true. When using a page file, this wouldn’t be a problem since if there is [...]

Read more...

A Tiny XML Parser

Mar 21, 2008

no comments
Popularity: 0%

While looking for a convenient way for storing some level data for a game I’m working on (more of that later), I came across this small C++ XML parser. Originally, I wanted to stay away from XML or other formats as they are overkill for the simple game format. However, this parser is both small (the Xerces parser is over 50 megabytes!) and easy to use.

Read more...

Pointers? Pointers.

Mar 09, 2008

no comments
Popularity: 0%

This is my attempt at demystifying pointers, a very useful concept available in C, C++ and other programming languages that do not lack balls. This is a living tutorial, i.e. you can suggest things and I’ll make it better. I’m all for a good pointer tutorial.

Read more...