Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: What is this error related to?  (Read 1276 times)

0 Members and 1 Guest are viewing this topic.

bheadmaster

  • Newbie
  • *
  • Posts: 1
    • View Profile
What is this error related to?
« 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?

grok

  • Jr. Member
  • **
  • Posts: 67
    • View Profile
    • Email
Re: What is this error related to?
« Reply #1 on: January 23, 2015, 03:17:10 pm »
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?

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: What is this error related to?
« Reply #2 on: January 23, 2015, 03:19:33 pm »
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 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
« Last Edit: January 23, 2015, 03:21:10 pm by Jesper Juhl »

 

anything