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

Author Topic: static class with sf::Image/sf::Sprite member causes crash  (Read 2087 times)

0 Members and 1 Guest are viewing this topic.

AdventWolf

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
static class with sf::Image/sf::Sprite member causes crash
« on: October 19, 2011, 08:30:16 am »
In my coding I have had problems with using static classes with sf::Image and sf::Sprite members.
When I comment out the variable, the program runs perfectly, but when the variable is a member of the static class, i get the mutex error:

Code: [Select]

myMutex(mutex)
{
    myMutex.Lock();
}


Oh and it runs fine in Release mode, just not Debug mode. Which leads me to believe it may be related to that damn ATI bug :evil:

What could cause this? I should probably post the code, i tried to replicate it in a small sample code but I haven't so far.

Edit: blah it is late, the ati bug doesn't have anything to do with debug/release i dont think.

 

anything