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

Author Topic: Debug assertion fail!  (Read 8052 times)

0 Members and 2 Guests are viewing this topic.

BlueMagic

  • Newbie
  • *
  • Posts: 49
    • View Profile
Debug assertion fail!
« Reply #15 on: September 15, 2011, 06:05:04 am »
So I finally got home and tried compiling statically (this time, I did it correctly).

It still crashes at the end of the program, when some of these calls are made:


In main():
Code: [Select]

((sf::Texture&)(TtfText::currentFont).GetTexture(25)).SetSmooth(false);


In TtfText::TtfText(...):

Code: [Select]

currentFont.LoadFromFile("test.ttf");
//AND/OR
text.SetFont(currentFont);


Breakpoint that VS toggles takes me here:
MutexImpl.cpp
Code: [Select]
void MutexImpl::Lock()
{
    EnterCriticalSection(&myMutex); // here
}



Am I the only one with these kinds of troubles? If so, I must have done something wrong because it all makes no sense. Solutions or any kind of help would be really appreciated!

EDIT: Sorry for the double post, I had forgotten it was me the last to post here.

EDIT2: Update on this:

If I create a TtfText object in main() by declaring it with 'new', I have no problems whatsoever.

Hopefully that's enough insight to identify the problem.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Debug assertion fail!
« Reply #16 on: September 16, 2011, 08:37:59 pm »
Don't bother with that, it's a bug in SFML.
Laurent Gomila - SFML developer

 

anything