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

Author Topic: Runtime Errors  (Read 2716 times)

0 Members and 1 Guest are viewing this topic.

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Runtime Errors
« on: April 18, 2010, 07:49:55 pm »
I'm getting one of two runtime errors (maybe both if I allow it). I have two objects in my game engine, one draws the FPS and the other an image.

When I use the FPS object I now get this error:

Quote
HEAP[Game Engine.exe]: HEAP: Free Heap block d65750 modified at d6586c after it was freed


When I use the image object I get this error:
Quote
An internal OpenGL call failed in image.cpp (828) : GL_INVALID_OERATION, the specified operation is not allowed in the current sate


I'm using SFML2 compiled statically. I don't know what's causing these...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Runtime Errors
« Reply #1 on: April 18, 2010, 08:27:50 pm »
Hi

Can you show a complete and minimal example that reproduces these errors?
Laurent Gomila - SFML developer

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Runtime Errors
« Reply #2 on: April 18, 2010, 08:33:42 pm »
I have no idea what would be causing this, but I can say that I'm using boost::ptr_vector to store objects and images in, if it makes any difference. That's what I suspect is the problem, but I'm not sure.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Runtime Errors
« Reply #3 on: April 18, 2010, 08:41:15 pm »
That's why a minimal example would help to find out the source of the problem ;)
Laurent Gomila - SFML developer

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Runtime Errors
« Reply #4 on: April 18, 2010, 09:07:23 pm »
OK, just tried storing sf::Images in a boost::ptr_vector, it worked fine. I'm confused now. :P

TheMagicNumber

  • Jr. Member
  • **
  • Posts: 64
    • View Profile
Runtime Errors
« Reply #5 on: April 20, 2010, 03:59:44 am »
If there are any suspicions of what the error could be, please tell me, or even ask for code.

Ashenwraith

  • Sr. Member
  • ****
  • Posts: 270
    • View Profile
Runtime Errors
« Reply #6 on: April 20, 2010, 04:36:05 am »
He asked for code twice already.

 

anything