I was working on the beginner videos for C++ and I was able to do everything thus far (up to pt 4) without any issue on my desktop. My laptop on the other hand for some reason keeps saying Assertion Error when I try to run the debugger. it references line 314 y >= 0 in the graphics.cpp file.
I turned off my desktop but thought it'd be good practice to go through my notes and recreate the steps to my laptop and this happened.
Any help is appreciated...
Assertion failed - newbie help?
Assertion failed - newbie help?
- Attachments
-
- Solution.zip
- I hope this is right...
- (751 Bytes) Downloaded 154 times
Re: Assertion failed - newbie help?
I think i found out my issue... kinda... has something to do with my gfx.PutPixel functions... the numbers it seems do not agree with the barriers of the window.
Re: Assertion failed - newbie help?
I solved my issue. the compiler doesn't like functions that include : gfx.PutPixel(reticle_x, 4 - reticle_y, 255, gb, gb);
so i initially had a ton of values that were all saying :
2 - reticle_y
3 - reticle_y
etc...
when I needed to be stating :
reticle_y - 5
reticle_y - 2
etc...
Sorry for posting here and then figuring it out myself.
so i initially had a ton of values that were all saying :
2 - reticle_y
3 - reticle_y
etc...
when I needed to be stating :
reticle_y - 5
reticle_y - 2
etc...
Sorry for posting here and then figuring it out myself.
Re: Assertion failed - newbie help?
It's okay man... figuring it out yourself is the best! But don't hesitate to post again.