problem with debugging...

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
d34db4r0n
Posts: 2
Joined: March 1st, 2012, 10:47 pm

problem with debugging...

Post by d34db4r0n » March 1st, 2012, 10:57 pm

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 :)

luskas
Posts: 23
Joined: February 26th, 2012, 12:08 pm

Re: problem with debugging...

Post by luskas » March 1st, 2012, 11:13 pm

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. 8-)

User avatar
chili
Site Admin
Posts: 3948
Joined: December 31st, 2011, 4:53 pm
Location: Japan
Contact:

Re: problem with debugging...

Post by chili » March 3rd, 2012, 2:55 am

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.
Chili

d34db4r0n
Posts: 2
Joined: March 1st, 2012, 10:47 pm

Re: problem with debugging...

Post by d34db4r0n » March 3rd, 2012, 11:12 am

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 :)

Post Reply