Page 1 of 1

Help with Lesson 5 Beginner.

Posted: May 6th, 2013, 5:21 pm
by PoopLoser
So when I made my pointer thing move with arrow keys everything works fine I can move it for a while , but then suddenly an error came out of nowhere:

Unhandled exception at 0x002c1304 in Chili DirectX Framework.exe: 0x80000001: ?? ??????????????.

happened every time.
I was thinking that i made some kind of mistake that I can't see. So I started everything all over again from a new file and the same happened again.
so I want to ask if I did something wrong ? Maybe I can just ignore it and continue with tutorials ?
Sorry for my bad English.

Re: Help with Lesson 5 Beginner.

Posted: May 6th, 2013, 9:44 pm
by viruskiller
can't remember exactly what is teached in lesson 5 but unless there is a code to stop the pointer going off screen you would crash the game every time you try to draw something outside the screen area.
so keep following the tutorials and i think chili will show u how to fix that:)

Re: Help with Lesson 5 Beginner.

Posted: May 7th, 2013, 3:38 pm
by PoopLoser
Fixed it !!!
messed around a little bit with the code and it started working and I don't have an idea what I did. :)

Re: Help with Lesson 5 Beginner.

Posted: May 8th, 2013, 2:08 pm
by LuX
If you draw outside the screen, or in this case you probably went out of the screen, the program will crash. Basically you have an array of pixels and if you try to draw on a pixel that doesn't exists then it will crash. From the left and right you can move a bit on the outer side but top and bottom will crash immediately.

Re: Help with Lesson 5 Beginner.

Posted: May 8th, 2013, 4:26 pm
by PoopLoser
Thank you LuX i think I now understand what was the problem wit my program.:)

Re: Help with Lesson 5 Beginner.

Posted: May 16th, 2013, 1:54 am
by DreamBliss
Remember to add the barrier of 5 pixels around the inside of the screen as detailed in later lessons.