Quote:
It fails in the exact same way. Visual studio pops up and says Unhandled exception at 0x0040173b in MesaApp.exe: 0xC0000005: Access violation reading location 0x00000057.
It is as SiCrane said, you are calling Release() on a null pointer. This is probably in the calling code.
Quote:
So I've implemented your other suggestion, the one of using dead and such, but what is happening is the Objects aren't being removed, they are still being drawn which shouldn't be as they are only drawn if they are in the vector.
Have you checked in the debugger to ensure that they are dead()? That when they are dead() that the call to remove them actually occurs.
We cannot diagnose issues in code we cannot see.