SFML community forums
Help => General => Topic started by: bheadmaster on January 23, 2015, 03:02:42 pm
-
I just set up SFML with CodeBlocks with help of sfml-dev tutorial, and it worked for the tutorial example. However, when I load the "Pong" example from the SFML folder, the error pops up:
"sfml_project.exe - Application error
The instruction at "0x10025ef2" referenced memory at "0x0158bfe0". The memory could not be "read".
Click on OK to terminate the program"
I'm very confused about what could cause this error. Help?
-
is that this Pong source you're referring to: https://github.com/SFML/SFML/blob/master/examples/pong/Pong.cpp ?
if yes, then are you sure you haven't changed anything?
-
You are reading memory outside your address space or memory inside it that has explicitly been marked as not readable.
There can be many reasons for this - including, but not limited to:
A bug in your code.
A toolchain failure, like using a different compiler for your app than the one SFML was built with.
Mixing debug and release builds.
Etc etc etc.
Please provide a Short, Self Contained, Correct (Compilable), Example (http://sscce.org/) that we can use to test on our own machines, as well as more detail on your operating system, toolchain, SFML version and so on. Please also check out http://www.catb.org/esr/faqs/smart-questions.html