Original Post
Hi,
I''ve made a post on the directX forum as my problem is related to DX8, but upon further messing around with the code, I believe my problem is actually caused because of some fault in the structure of my classes (and nobody in the DirectX forum seemed able to help).
My problem is this, I''m trying to import custom meshes into an ID3DXMesh object. I''ve sucessfully managed to do so, but when I get around to rendering, the program will successfully compile with 0 errors or warnings, yet when I run the program, as soon as it reaches the command
Mesh->m_Mesh = Mesh3;
it exits with no error or warning of any kind. I know it''s this line causing the fault because if I comment it out, the program runs fine. I believe the problem lies in the fact that I''m using an engine from a DirectX programming book, perhaps my structure somehow is not matching the structure I''m trying to copy it into or something. I believe the issue is memory related because a memcpy function was doing the exact same thing when I specified the wrong size to copy. The problem is I need to copy my Mesh object (Mesh3) into the m_Mesh object that is part of a separate class function (Mesh->m_Mesh) if I try to copy it into an object within the same class, it works fine, if I try to copy it into an object from another class... this weird program termination occurs.
I don''t really understand the process of using the VC++ 6 debugger but when I do use it on this code, the system hangs, which means its no help anyway. Does anyone have the slightest clue why it doesn''t like me copying to an object within another class??
Thanks for any assistance anone can offer..... any further related code can be provided if needed.
Steve AKA Mephs