SFML community forums

Help => Graphics => Topic started by: AdventWolf on October 19, 2011, 08:30:16 am

Title: static class with sf::Image/sf::Sprite member causes crash
Post by: AdventWolf 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.