Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

mits

Problem encountered!

This topic is 5816 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I have made a class cApp similar with that at the Gamecore from the Jim Adams'' book "Programming rpgs with directx" but simplier. It creates a window and initializes the D3D object so I don''t have to do this stuff every time.There is a cApp.h file and a cApp.cpp file.So far so good.... For a test, I created a new workspace and I used these files to draw vertices borrowing the code from the vertices tutorial from directx 8.0 sdk.When I build it,there is no error.When I execute it , a window appears which says that the program has encountered a problem and needs to be close.Does anyone has in mind what the problem coulb be since no problems are found during the compilation? If anyone wants to help I can send him the source to test it by himself? Remember I am just a beginner.... Thanks in advance!

Share this post


Link to post
Share on other sites
Advertisement
Geez, that''s just a general crash and could be anything. Have you ever used a debugger before? If not, then for Visual C++ users, compile in Debug Mode. Then, instead of execute program (Ctrl+F5), you choose Go (F5). That will run the program in the debugger. When it crashes, it will stop at the line of the crash. Simple, but yet oh so effect. Very, very, very, very, very, very, important that you learn to effectively use your debugger. It will save you hours and weeks and months of time. Trust me, no good programmer exists who doesn''t use a debugger. It''s as essential as the compiler itself.

If you spend 2 hours learning to use a debugger, it will save you 10 times that in the next week, I promise... and that much again for every week thereafter.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!