So... when I try to debug something I just get this error --> "Unhandled exception at 0x0040178a in Chili DirectX Framework.exe: 0xC0000005: Access violation reading location 0x00000000."
here's what I tried to debug last ( yup i'm a beginning xD )
#include "Game.h"
Game::Game( HWND hWnd,const KeyboardServer& kServer )
: gfx ( hWnd ),
kbd( kServer )
{}
void Game::Go()
{
gfx.BeginFrame();
ComposeFrame();
gfx.EndFrame();
}
void Game::ComposeFrame()
{
gfx.PutPixel( 400,300,255,255,255 );
gfx.PutPixel( 395,300,255,255,255 );
gfx.PutPixel( 396,300,255,255,255 );
gfx.PutPixel( 397,300,255,255,255 );
gfx.PutPixel( 403,300,255,255,255 );
gfx.PutPixel( 404,300,255,255,255 );
gfx.PutPixel( 405,300,255,255,255 );
gfx.PutPixel( 400,295,255,255,255 );
gfx.PutPixel( 400,296,255,255,255 );
gfx.PutPixel( 400,297,255,255,255 );
gfx.PutPixel( 400,303,255,255,255 );
gfx.PutPixel( 400,304,255,255,255 );
gfx.PutPixel( 400,305,255,255,255 );
}
tnx
problem with debugging...
Re: problem with debugging...
There´s nothing wrong with your lines as long as i can see...
Did you change anything in the original Chilli's frame? Maybe you can download the frame again and start over...
Or maybe you can wait a little bit for Chilli to work that out.
Did you change anything in the original Chilli's frame? Maybe you can download the frame again and start over...
Or maybe you can wait a little bit for Chilli to work that out.
Re: problem with debugging...
Okay baron, first question I have is were you able to compile and run the framework before you started adding to it? I mean, did it run fine and just give you the black screen?
Second, I need you to clean up your solution folder. To do this you need to delete all the following files and folders if they exist:
Release
Debug
Chili DirectX Framework\Release
Chili DirectX Framework\Debug
ipch
Chili DirectX Framework.sdf
After you've done this, zip up the solution folder and post it here. It will be easier for me to diagnose your problem if I have your entire solution.
Second, I need you to clean up your solution folder. To do this you need to delete all the following files and folders if they exist:
Release
Debug
Chili DirectX Framework\Release
Chili DirectX Framework\Debug
ipch
Chili DirectX Framework.sdf
After you've done this, zip up the solution folder and post it here. It will be easier for me to diagnose your problem if I have your entire solution.
Chili
Re: problem with debugging...
I was trying to run it on my netbook and it was just giving me this error, but when I tried to run it on my pc (which was after i created this topic) it worked