I'm working on a Direct3D application that uses the D3DSprite class. I don't think my error is related Direct3D. Whenever I try to allocate memory for a new class, operator new and malloc return NULL pointers. The MSDN says that this means there isn't enough memory on my system, but I know that's not true, because I can run other programs from my compiler and don't have these problems. I had this error once before, but a restart fixed it, but no such luck this time. What's going on?