Original Post
I recently began modifying some of the classes in my app to be a bit more logical and hierarchical. However, after modifying some of the class definitions and everything, the code compiled, and had no errors that I could find. At runtime, however, all of a sudden I''m getting loads of System.NullReferenceException errors as well as a bunch of ASSERTs (which I didn''t use at all). The NullRefExceptions are occuring in stupid places including one line that just says
if(m_bReady). Does anyone have any idea how to fix this?
P.S. If it matters at all, I have two classes that I modified called THING and MESH. THING has a mesh member, and also stores bounding spheres, position, velocity, etc. The change I made was moving the three variables that stored the LPD3DXMesh data from the THING class to the MESH class. The only three variables I moved were WORD* m_Indices, MODELVERTEX* m_Vertices, and D3DXPLANE m_Faces.