Problem with the program (Framework thingy) at lesson 5
Problem with the program (Framework thingy) at lesson 5
Im at lesson number 5.
My program (Framework) crashes everytime i start to use it...
I had it up for a couple of minutes, worked fine but when i wrote around 10-20 characters, it crashed!!!
I've restarted it like 10 times. Always crashes when i write like 10-20 characters.
Does anyone have the same problem or anyone that can solve it?
PS:Sry for not fluent english!
My program (Framework) crashes everytime i start to use it...
I had it up for a couple of minutes, worked fine but when i wrote around 10-20 characters, it crashed!!!
I've restarted it like 10 times. Always crashes when i write like 10-20 characters.
Does anyone have the same problem or anyone that can solve it?
PS:Sry for not fluent english!
-
- Posts: 8
- Joined: May 5th, 2013, 3:00 pm
Re: Problem with the program (Framework thingy) at lesson 5
Show your code, that's what's causing the crash. Closing the program does nothing as the compiler is looking at your code, not your IDE.
Re: Problem with the program (Framework thingy) at lesson 5
Game::Game( HWND hWnd,const KeyboardServer& kServer )
: gfx ( hWnd ),
kbd( kServer )
{}
void Game::Go()
{
gfx.BeginFrame();
ComposeFrame();
gfx.EndFrame();
}
void Game::ComposeFrame()
{
int x;
int y;
int gb;
int f;
x = 400;
y = 300;
gb = 255;
f = 255;
if( kbd.RightIsPressed() )
{
x = 500;
}
if( kbd.LeftIsPressed() )
{
x = 300;
}
if( kbd.UpIsPressed() )
{
y = 200;
}
if( kbd.DownIsPressed() )
{
y = 400;
}
if( kbd.EnterIsPressed() )
{
f = 0;
}
if( kbd.SpaceIsPressed() )
{
gb = 0;
}
gfx.PutPixel( x, y,255,gb,f );
gfx.PutPixel( -5 + x, y,255,gb,f );
gfx.PutPixel( -4 + x, y,255,gb,f );
gfx.PutPixel( -3 + x, y,255,gb,f );
gfx.PutPixel( 3 + x, y,255,gb,f );
gfx.PutPixel( 4 + x, y,255,gb,f );
gfx.PutPixel( 5 + x, y,255,gb,f );
gfx.PutPixel( x,-5 + y,255,gb,f );
gfx.PutPixel( x,-4 + y,255,gb,f );
gfx.PutPixel( x,-3 + y,255,gb,f );
gfx.PutPixel( x, 3 + y,255,gb,f );
gfx.PutPixel( x, 4 + y,255,gb,f );
gfx.PutPixel( x, 5 + y,255,gb,f );
}
Im trying to follow lesson number 5 but it just crashes when im changing "Rightispressed x = 500;" too "Rightispressed x = x + 1;"
Have crashed when i wrote a new "int" too.
: gfx ( hWnd ),
kbd( kServer )
{}
void Game::Go()
{
gfx.BeginFrame();
ComposeFrame();
gfx.EndFrame();
}
void Game::ComposeFrame()
{
int x;
int y;
int gb;
int f;
x = 400;
y = 300;
gb = 255;
f = 255;
if( kbd.RightIsPressed() )
{
x = 500;
}
if( kbd.LeftIsPressed() )
{
x = 300;
}
if( kbd.UpIsPressed() )
{
y = 200;
}
if( kbd.DownIsPressed() )
{
y = 400;
}
if( kbd.EnterIsPressed() )
{
f = 0;
}
if( kbd.SpaceIsPressed() )
{
gb = 0;
}
gfx.PutPixel( x, y,255,gb,f );
gfx.PutPixel( -5 + x, y,255,gb,f );
gfx.PutPixel( -4 + x, y,255,gb,f );
gfx.PutPixel( -3 + x, y,255,gb,f );
gfx.PutPixel( 3 + x, y,255,gb,f );
gfx.PutPixel( 4 + x, y,255,gb,f );
gfx.PutPixel( 5 + x, y,255,gb,f );
gfx.PutPixel( x,-5 + y,255,gb,f );
gfx.PutPixel( x,-4 + y,255,gb,f );
gfx.PutPixel( x,-3 + y,255,gb,f );
gfx.PutPixel( x, 3 + y,255,gb,f );
gfx.PutPixel( x, 4 + y,255,gb,f );
gfx.PutPixel( x, 5 + y,255,gb,f );
}
Im trying to follow lesson number 5 but it just crashes when im changing "Rightispressed x = 500;" too "Rightispressed x = x + 1;"
Have crashed when i wrote a new "int" too.
Re: Problem with the program (Framework thingy) at lesson 5
Is your computer old? Try using the ghillie build version of the framework. You can find it at the material download page.
ʕ •ᴥ•ʔ
Re: Problem with the program (Framework thingy) at lesson 5
This is the problem - http://piclair.com/ua8cr
Translation from Swedish to English - Microsoft Visual C++ 2010 Express have stopped working
Windows is searching for the problem...
Translation from Swedish to English - Microsoft Visual C++ 2010 Express have stopped working
Windows is searching for the problem...
Re: Problem with the program (Framework thingy) at lesson 5
My computer is a "Acer predator" cant the exact numbers. One year old. Ghilie didnt work. Crashed...
-
- Posts: 53
- Joined: January 7th, 2013, 8:09 am
Re: Problem with the program (Framework thingy) at lesson 5
Do you happen to use any screen reader software? Do you have a touch screen display?
Probably a long shot, but figured i'd ask anyways.
Probably a long shot, but figured i'd ask anyways.
Re: Problem with the program (Framework thingy) at lesson 5
My screen isnt a touch screen if it was that you wondered.
- DreamBliss
- Posts: 30
- Joined: March 27th, 2013, 11:48 pm
- Location: Lost on the Way
- Contact:
Re: Problem with the program (Framework thingy) at lesson 5
What operating system are you using?
You create reality in your mind,
Before experiencing it as reality,
So if you want to change something,
First change what you think about it.
Before experiencing it as reality,
So if you want to change something,
First change what you think about it.
Re: Problem with the program (Framework thingy) at lesson 5
Operating system - Windows 7