Good day,
Take the following program:
#include <SFML/Graphics.hpp>
sf::Texture texture;
int main() {
return 0;
}
When compiled with MinGW g++ against SFML DLLs, it runs successfully.
When compiled with MinGW g++ against SFML static libs, it runs successfully.
When compiled with VC++ 2010 against SFML DLLs, it runs successfully.
When compiled with VC++ 2010 against SFML static libs, it crashes with the call stack:
ntdll.dll!77aa22c2()
[Frames below may be incorrect and/or missing, no symbols loaded for ntdll.dll]
> testimage.exe!sf::priv::MutexImpl::Lock() Line 52 + 0xc bytes C++
testimage.exe!sf::Mutex::Lock() Line 62 C++
testimage.exe!sf::Lock::Lock(sf::Mutex & mutex) Line 39 C++
testimage.exe!sf::GlResource::GlResource() Line 52 + 0xd bytes C++
testimage.exe!sf::Texture::Texture() Line 48 + 0x16 bytes C++
testimage.exe!`dynamic initializer for 'texture''() Line 3 + 0x28 bytes C++
msvcr100d.dll!_initterm(void (void)* * pfbegin, void (void)* * pfend) Line 873 C
testimage.exe!__tmainCRTStartup() Line 473 + 0xf bytes C
testimage.exe!mainCRTStartup() Line 371 C
kernel32.dll!7530339a()
ntdll.dll!77ab9ed2()
ntdll.dll!77ab9ea5()
Could anyone more experienced than I please explain why this happens in the one instance and not the others?