SFML community forums

Help => Window => Topic started by: Kool Kid on April 20, 2014, 11:36:12 pm

Title: Multi-Thread Error on Creation of a sf::Window
Post by: Kool Kid on April 20, 2014, 11:36:12 pm
Hi guys!
I have a interesting problem wich I werent able to solve.
Well on creation of any kind of a sf::Window (so sf::Window or sf::RenderWindow) I get an unhandled exception for a special section of the file "mlock.c".
A code to reproduce the error is simple:
#include <SFML/Graphics.hpp>
int main()
{
sf::RenderWindow;
}
Please ask for more information you might need, I don't know, this error is curious.

Thanks

Edit: Forgot to mention, there are no errors when i build it and run the .exe myself
Title: Re: Multi-Thread Error on Creation of a sf::Window
Post by: Ixrec on April 21, 2014, 12:00:23 am
This sounds like a configuration/environment error, so we'll probably need information like this:

What compiler/IDE are you using?  What operating system?  Debug or release build?  Have you made sure you aren't mixing debug/release settings?  Exactly which SFML files did you download?  etc
Title: Re: Multi-Thread Error on Creation of a sf::Window
Post by: Kool Kid on April 21, 2014, 12:07:42 am
Quote
What compiler/IDE are you using?
MCV++2012Express

Quote
What operating system?
Windows 7

Quote
Debug or release build?
Both

Quote
Have you made sure you aren't mixing debug/release settings?
yes. Some other guys looked at it. They told me it looks fine. -d suffix at debug, no suffix at release.
Says macros look fine aswell

Quote
Exactly which SFML files did you download?
Source
Title: Re: Multi-Thread Error on Creation of a sf::Window
Post by: ChronicRat on April 21, 2014, 06:28:42 am
Try this http://msdn.microsoft.com/en-us/library/d14azbfh.aspx
Title: Re: Multi-Thread Error on Creation of a sf::Window
Post by: Kool Kid on April 22, 2014, 03:04:20 pm
Thank you, but the link didn't help either. I just tried running it as administrator, and it worked  :D
Can't belive i didn't think of that before.