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():
((sf::Texture&)(TtfText::currentFont).GetTexture(25)).SetSmooth(false);
In TtfText::TtfText(...):
currentFont.LoadFromFile("test.ttf");
//AND/OR
text.SetFont(currentFont);
Breakpoint that VS toggles takes me here:
MutexImpl.cpp
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.