Within this class:
class load_soldier{ ////////////////////////////////////////////////////////////// ///DATA MEMBERS ....unnecessary code removed public: LPDIRECT3DINDEXBUFFER9 i_buffer; LPDIRECT3DTEXTURE9 texture1; ....unnecessary code removed}
I have made the two above pointers. I know I should really use auto pointers but I had some trouble getting them to work with native directX variables. For now I just want this to work with old fashioned pointers. Then I'll move over. My question is, given that I clean up these two pointer variables, and all available resources are present, why do I get the "Encountered a problem and needs to close" thing show up? I've carefully checked everything and I've narrowed it down to these two variables. Even wrote a function in the class to clean these two variables up.
Normally the only time I see that error screen on program close is if something didn't get cleaned up or a resource was missing. Yet I've carefully done it all. Is this some kind of scope issue? Has anyone any ideas, please just throw them out. Thanks, as always I'll rate people up who reply.