Ok, the book I was reading had some code and said something about releasing surfaces in reverse order that they were gotten in, but I was sort of confused and I really don't know exactly how evil it would be to jumble up the order that I release them in. For example:
Code:
IDirectDrawSurface7* a = get_a_surface();
IDirectDrawSurface7* b = get_a_surface();
IDirectDrawSurface7* c = get_a_surface();
//**********************
c->Release(); //How the
b->Release(); //book
a->Release(); //did it
//**********************
b->Release(); //Would
c->Release(); //this
a->Release(); //be bad?