I get SFML from this site, i installed it as static library with tutorial, for debug and release.
I don't get any crash, warning or something else from debugger.
For sure, my project properties (i'm running it as debug):
C/C++ - Preprocessor - Preprocessor definitions:SFML_STATIC;_MBCS;%(PreprocessorDefinitions)
C/C++ - General - Additional Include Directories:C:\SFML\include
(yea, i unzipped SFML to C:\SFML)
Linker - General - Additional Library Directories:C:\SFML\lib
Linker - Input - Additional Dependencies:sfml-system-s-d.lib;sfml-graphics-s-d.lib;sfml-window-s-d.lib;sfml-network-s-d.lib;sfml-audio-s-d.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)
every one lib for static and debug.
Build log:
1>------ Build started: Project: HelloWorld, Configuration: Debug Win32 ------
1> main.cpp
1> LINK : C:\SFML\Projects\HelloWorld\Debug\HelloWorld.exe not found or not built by the last incremental link; performing full link
1>sfml-system-s-d.lib(Clock.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Clock.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(Err.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Err.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(Lock.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Lock.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(Mutex.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Mutex.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(Sleep.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Sleep.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(String.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(String.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(ThreadLocal.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(ThreadLocal.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(Time.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(Time.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(ClockImpl.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(ClockImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(MutexImpl.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(MutexImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(SleepImpl.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(SleepImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-system-s-d.lib(ThreadLocalImpl.cpp.obj) : warning LNK4099: PDB 'sfml-system-s-d.pdb' was not found with 'sfml-system-s-d.lib(ThreadLocalImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-system-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Color.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Color.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(GLCheck.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(GLCheck.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Image.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Image.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(ImageLoader.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(ImageLoader.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(RenderStates.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(RenderStates.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(RenderTarget.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(RenderTarget.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(RenderWindow.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(RenderWindow.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Shader.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Shader.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Texture.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Texture.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(TextureSaver.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(TextureSaver.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Transform.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Transform.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Transformable.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Transformable.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(View.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(View.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Vertex.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Vertex.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-graphics-s-d.lib(Sprite.cpp.obj) : warning LNK4099: PDB 'sfml-graphics-s-d.pdb' was not found with 'sfml-graphics-s-d.lib(Sprite.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-graphics-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(GlContext.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(GlContext.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(GlResource.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(GlResource.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(JoystickManager.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(JoystickManager.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(VideoMode.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(VideoMode.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(Window.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(Window.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(WindowImpl.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(WindowImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(WglContext.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(WglContext.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(JoystickImpl.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(JoystickImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(VideoModeImpl.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(VideoModeImpl.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1>sfml-window-s-d.lib(WindowImplWin32.cpp.obj) : warning LNK4099: PDB 'sfml-window-s-d.pdb' was not found with 'sfml-window-s-d.lib(WindowImplWin32.cpp.obj)' or at 'C:\SFML\Projects\HelloWorld\Debug\sfml-window-s-d.pdb'; linking object as if no debug info
1> HelloWorld.vcxproj -> C:\SFML\Projects\HelloWorld\Debug\HelloWorld.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
And what's happening on breakpoint and call stack:
This screen shows what's up just after breakpoint (i changed code to declare new bool, write result to it, and check):
vars:
Then there's some assembly code, calling function, etc., this is repeating many times:
00460794 rep stos dword ptr es:[edi]
(i think it's 'for' loop, ECX is decerasing by 1 and EDI is incerasing by 4)
then there is Image::getSize, Texture::create, some GlContext stuff, ThreadLocalImpl stuff, _RCT_CheckEsp repeating some times, sf::priv::ensureGlewInit, this loop doing nothing some time, then increasing EAX:
00486270 add eax,ebx
00486272 cmp byte ptr [eax+esi],0
00486276 jne _glewGetExtension+210h (486270h)
then this loop:
00478235 inc eax
00478236 cmp byte ptr [eax+edx],0
0047823A jne std::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int>::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int><std::basic_string<char,std::char_traits<char>,std::allocator<char> >,int>+2E5h (478235h)
another one loop:
00478252 cmp al,20h
00478254 je std::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int>::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int><std::basic_string<char,std::char_traits<char>,std::allocator<char> >,int>+30Fh (47825Fh)
00478256 mov al,byte ptr [ecx+esi+1]
0047825A inc ecx
0047825B test al,al
0047825D jne std::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int>::_Pair_base<std::basic_string<char,std::char_traits<char>,std::allocator<char> > const ,int><std::basic_string<char,std::char_traits<char>,std::allocator<char> >,int>+302h (478252h)
(there is too much shit like that, i'll get right to halt loop)
/.../
but w8... there is some exception like 'Disassembler cannot be displayed in run mode"... while i'm jumping over instructions.
It's happening on Texture::create, program is executing this code:
--- d:\developpement\sfml\sfml\src\sfml\graphics\texture.cpp -------------------
00460770 push ebp
00460771 mov ebp,esp
00460773 push 0FFFFFFFFh
00460775 push offset __ehhandler$?loadFromImage@Texture@sf@@QAE_NABVImage@2@ABV?$Rect@H@2@@Z (4D906Eh)
0046077A mov eax,dword ptr fs:[00000000h]
00460780 push eax
00460781 sub esp,5Ch
00460784 push esi
00460785 push edi
00460786 push ecx
00460787 lea edi,[ebp-68h]
0046078A mov ecx,17h
0046078F mov eax,0CCCCCCCCh
00460794 rep stos dword ptr es:[edi]
00460796 pop ecx
00460797 mov eax,dword ptr [___security_cookie (5078A4h)]
0046079C xor eax,ebp
0046079E push eax
0046079F lea eax,[ebp-0Ch]
004607A2 mov dword ptr fs:[00000000h],eax
004607A8 mov dword ptr [ebp-10h],ecx
004607AB lea eax,[ebp-4Ch]
004607AE push eax
004607AF mov ecx,dword ptr [ebp+8]
004607B2 call sf::Image::getSize (449E06h)
004607B7 mov ecx,dword ptr [eax]
004607B9 mov dword ptr [ebp-14h],ecx
004607BC lea edx,[ebp-54h]
004607BF push edx
004607C0 mov ecx,dword ptr [ebp+8]
004607C3 call sf::Image::getSize (449E06h)
004607C8 mov eax,dword ptr [eax+4]
004607CB mov dword ptr [ebp-18h],eax
004607CE mov ecx,dword ptr [ebp+0Ch]
004607D1 cmp dword ptr [ecx+8],0
004607D5 je sf::Texture::loadFromImage+9Fh (46080Fh)
004607D7 mov edx,dword ptr [ebp+0Ch]
004607DA cmp dword ptr [edx+0Ch],0
004607DE je sf::Texture::loadFromImage+9Fh (46080Fh)
004607E0 mov eax,dword ptr [ebp+0Ch]
004607E3 cmp dword ptr [eax],0
004607E6 jg sf::Texture::loadFromImage+10Fh (46087Fh)
004607EC mov ecx,dword ptr [ebp+0Ch]
004607EF cmp dword ptr [ecx+4],0
004607F3 jg sf::Texture::loadFromImage+10Fh (46087Fh)
004607F9 mov edx,dword ptr [ebp+0Ch]
004607FC mov eax,dword ptr [edx+8]
004607FF cmp eax,dword ptr [ebp-14h]
00460802 jl sf::Texture::loadFromImage+10Fh (46087Fh)
00460804 mov ecx,dword ptr [ebp+0Ch]
00460807 mov edx,dword ptr [ecx+0Ch]
0046080A cmp edx,dword ptr [ebp-18h]
0046080D jl sf::Texture::loadFromImage+10Fh (46087Fh)
0046080F lea eax,[ebp-5Ch]
00460812 push eax
00460813 mov ecx,dword ptr [ebp+8]
00460816 call sf::Image::getSize (449E06h)
0046081B mov ecx,dword ptr [eax+4]
0046081E push ecx
0046081F lea edx,[ebp-64h]
00460822 push edx
00460823 mov ecx,dword ptr [ebp+8]
00460826 call sf::Image::getSize (449E06h)
0046082B mov eax,dword ptr [eax]
0046082D push eax
0046082E mov ecx,dword ptr [ebp-10h]
00460831 call sf::Texture::create (44A487h)
00460836 movzx ecx,al
00460839 test ecx,ecx
0046083B je sf::Texture::loadFromImage+103h (460873h)
0046083D mov edx,dword ptr [ebp+8]
00460840 push edx
00460841 mov ecx,dword ptr [ebp-10h]
00460844 call sf::Texture::update (4490E1h)
00460849 mov esi,esp
0046084B call dword ptr [__imp__glFlush@0 (50DC94h)]
00460851 cmp esi,esp
00460853 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
00460858 push 0C6h
0046085D push 4E3880h
00460862 call sf::priv::glCheckError (44AA9Fh)
00460867 add esp,8
0046086A mov al,1
0046086C jmp sf::Texture::loadFromImage+281h (4609F1h)
00460871 jmp sf::Texture::loadFromImage+10Ah (46087Ah)
00460873 xor al,al
00460875 jmp sf::Texture::loadFromImage+281h (4609F1h)
0046087A jmp sf::Texture::loadFromImage+281h (4609F1h)
0046087F mov eax,dword ptr [ebp+0Ch]
00460882 mov ecx,dword ptr [eax]
00460884 mov dword ptr [rectangle],ecx
00460887 mov edx,dword ptr [eax+4]
0046088A mov dword ptr [ebp-28h],edx
0046088D mov ecx,dword ptr [eax+8]
00460890 mov dword ptr [ebp-24h],ecx
00460893 mov edx,dword ptr [eax+0Ch]
00460896 mov dword ptr [ebp-20h],edx
00460899 cmp dword ptr [rectangle],0
0046089D jge sf::Texture::loadFromImage+136h (4608A6h)
0046089F mov dword ptr [rectangle],0
004608A6 cmp dword ptr [ebp-28h],0
004608AA jge sf::Texture::loadFromImage+143h (4608B3h)
004608AC mov dword ptr [ebp-28h],0
004608B3 mov eax,dword ptr [rectangle]
004608B6 add eax,dword ptr [ebp-24h]
004608B9 cmp eax,dword ptr [ebp-14h]
004608BC jle sf::Texture::loadFromImage+157h (4608C7h)
004608BE mov ecx,dword ptr [ebp-14h]
004608C1 sub ecx,dword ptr [rectangle]
004608C4 mov dword ptr [ebp-24h],ecx
004608C7 mov edx,dword ptr [ebp-28h]
004608CA add edx,dword ptr [ebp-20h]
004608CD cmp edx,dword ptr [ebp-18h]
004608D0 jle sf::Texture::loadFromImage+16Bh (4608DBh)
004608D2 mov eax,dword ptr [ebp-18h]
004608D5 sub eax,dword ptr [ebp-28h]
004608D8 mov dword ptr [ebp-20h],eax
004608DB mov ecx,dword ptr [ebp-20h]
004608DE push ecx
004608DF mov edx,dword ptr [ebp-24h]
004608E2 push edx
004608E3 mov ecx,dword ptr [ebp-10h]
--------------------------------------------------------------------------------------
004608E6 call sf::Texture::create (44A487h) ;HERE IT STOPS!
--------------------------------------------------------------------------------------
004608EB movzx eax,al
004608EE test eax,eax
004608F0 je sf::Texture::loadFromImage+27Fh (4609EFh)
004608F6 lea ecx,[save]
004608F9 call sf::priv::TextureSaver::TextureSaver (44B5DAh)
004608FE mov dword ptr [ebp-4],0
00460905 mov ecx,dword ptr [ebp+8]
00460908 call sf::Image::getPixelsPtr (449005h)
0046090D mov ecx,dword ptr [ebp-14h]
00460910 imul ecx,dword ptr [ebp-28h]
00460914 add ecx,dword ptr [rectangle]
00460917 lea edx,[eax+ecx*4]
0046091A mov dword ptr [pixels],edx
0046091D mov esi,esp
0046091F mov eax,dword ptr [ebp-10h]
00460922 mov ecx,dword ptr [eax+10h]
00460925 push ecx
00460926 push 0DE1h
0046092B call dword ptr [__imp__glBindTexture@8 (50DC88h)]
00460931 cmp esi,esp
00460933 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
00460938 push 0E2h
0046093D push 4E38BCh
00460942 call sf::priv::glCheckError (44AA9Fh)
00460947 add esp,8
0046094A mov dword ptr [i],0
00460951 jmp sf::Texture::loadFromImage+1ECh (46095Ch)
00460953 mov edx,dword ptr [i]
00460956 add edx,1
00460959 mov dword ptr [i],edx
0046095C mov eax,dword ptr [i]
0046095F cmp eax,dword ptr [ebp-20h]
00460962 jge sf::Texture::loadFromImage+244h (4609B4h)
00460964 mov esi,esp
00460966 mov ecx,dword ptr [pixels]
00460969 push ecx
0046096A push 1401h
0046096F push 1908h
00460974 push 1
00460976 mov edx,dword ptr [ebp-24h]
00460979 push edx
0046097A mov eax,dword ptr [i]
0046097D push eax
0046097E push 0
00460980 push 0
00460982 push 0DE1h
00460987 call dword ptr [__imp__glTexSubImage2D@36 (50DC90h)]
0046098D cmp esi,esp
0046098F call @ILT+6930(__RTC_CheckEsp) (44AB17h)
00460994 push 0E5h
00460999 push 4E38F8h
0046099E call sf::priv::glCheckError (44AA9Fh)
004609A3 add esp,8
004609A6 mov ecx,dword ptr [ebp-14h]
004609A9 mov edx,dword ptr [pixels]
004609AC lea eax,[edx+ecx*4]
004609AF mov dword ptr [pixels],eax
004609B2 jmp sf::Texture::loadFromImage+1E3h (460953h)
004609B4 mov esi,esp
004609B6 call dword ptr [__imp__glFlush@0 (50DC94h)]
004609BC cmp esi,esp
004609BE call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004609C3 push 0EBh
004609C8 push 4E3934h
004609CD call sf::priv::glCheckError (44AA9Fh)
004609D2 add esp,8
004609D5 mov byte ptr [ebp-65h],1
004609D9 mov dword ptr [ebp-4],0FFFFFFFFh
004609E0 lea ecx,[save]
004609E3 call sf::priv::TextureSaver::~TextureSaver (44B0ADh)
004609E8 mov al,byte ptr [ebp-65h]
004609EB jmp sf::Texture::loadFromImage+281h (4609F1h)
004609ED jmp sf::Texture::loadFromImage+281h (4609F1h)
004609EF xor al,al
004609F1 push edx
004609F2 mov ecx,ebp
004609F4 push eax
004609F5 lea edx,[ (460A20h)]
004609FB call @ILT+9195(@_RTC_CheckStackVars@8) (44B3F0h)
00460A00 pop eax
00460A01 pop edx
00460A02 mov ecx,dword ptr [ebp-0Ch]
00460A05 mov dword ptr fs:[0],ecx
00460A0C pop ecx
00460A0D pop edi
00460A0E pop esi
00460A0F add esp,68h
00460A12 cmp ebp,esp
00460A14 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
00460A19 mov esp,ebp
00460A1B pop ebp
00460A1C ret 8
00460A1F nop
00460A20 db 02h
00460A21 db 00h
00460A22 db 00h
00460A23 db 00h
00460A24 db 28h
00460A25 db 0ah
00460A26 db 46h
00460A27 db 00h
00460A28 db d4h
00460A29 db ffh
00460A2A db ffh
00460A2B db ffh
00460A2C db 10h
00460A2D db 00h
00460A2E db 00h
00460A2F db 00h
00460A30 db 45h
00460A31 db 0ah
00460A32 db 46h
00460A33 db 00h
00460A34 db c8h
00460A35 db ffh
00460A36 db ffh
00460A37 db ffh
00460A38 db 04h
00460A39 db 00h
00460A3A db 00h
00460A3B db 00h
00460A3C db 40h
00460A3D db 0ah
00460A3E db 46h
00460A3F db 00h
00460A40 db 73h
00460A41 db 61h
00460A42 db 76h
00460A43 db 65h
00460A44 db 00h
00460A45 db 72h
00460A46 db 65h
00460A47 db 63h
00460A48 db 74h
00460A49 db 61h
00460A4A db 6eh
00460A4B db 67h
00460A4C db 6ch
00460A4D db 65h
00460A4E db 00h
some deeper in code of sf::Texture::create (44A487h):
00460030 push ebp
00460031 mov ebp,esp
00460033 push 0FFFFFFFFh
00460035 push offset __ehhandler$?create@Texture@sf@@QAE_NII@Z (4D8FE2h)
0046003A mov eax,dword ptr fs:[00000000h]
00460040 push eax
00460041 sub esp,3Ch
00460044 push ebx
00460045 push esi
00460046 push edi
00460047 push ecx
00460048 lea edi,[ebp-48h]
0046004B mov ecx,0Fh
00460050 mov eax,0CCCCCCCCh
00460055 rep stos dword ptr es:[edi]
00460057 pop ecx
00460058 mov eax,dword ptr [___security_cookie (5078A4h)]
0046005D xor eax,ebp
0046005F push eax
00460060 lea eax,[ebp-0Ch]
00460063 mov dword ptr fs:[00000000h],eax
00460069 mov dword ptr [ebp-10h],ecx
0046006C cmp dword ptr [ebp+8],0
00460070 je sf::Texture::create+48h (460078h)
00460072 cmp dword ptr [ebp+0Ch],0
00460076 jne sf::Texture::create+0BFh (4600EFh)
00460078 mov esi,esp
0046007A mov eax,dword ptr [__imp_std::endl (50D9C0h)]
0046007F push eax
00460080 push 4E364Ch
00460085 mov edi,esp
00460087 mov ecx,dword ptr [ebp+0Ch]
0046008A push ecx
0046008B push 4E3650h
00460090 mov ebx,esp
00460092 mov edx,dword ptr [ebp+8]
00460095 push edx
00460096 push 4E3654h
0046009B call sf::err (449EBFh)
004600A0 push eax
004600A1 call std::operator<<<std::char_traits<char> > (44A8D8h)
004600A6 add esp,8
004600A9 mov ecx,eax
004600AB call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
004600B1 cmp ebx,esp
004600B3 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004600B8 push eax
004600B9 call std::operator<<<std::char_traits<char> > (44A8D8h)
004600BE add esp,8
004600C1 mov ecx,eax
004600C3 call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
004600C9 cmp edi,esp
004600CB call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004600D0 push eax
004600D1 call std::operator<<<std::char_traits<char> > (44A8D8h)
004600D6 add esp,8
004600D9 mov ecx,eax
004600DB call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9B8h)]
004600E1 cmp esi,esp
004600E3 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004600E8 xor al,al
004600EA jmp sf::Texture::create+3F3h (460423h)
004600EF mov eax,dword ptr [ebp+0Ch]
004600F2 push eax
-------------------------------------------------------------------------------------------------------
004600F3 call sf::Texture::getValidSize (44AA36h) ;HERE IT STOPS AGAIN
-------------------------------------------------------------------------------------------------------
004600F8 add esp,4
004600FB push eax
004600FC mov ecx,dword ptr [ebp+8]
004600FF push ecx
00460100 call sf::Texture::getValidSize (44AA36h)
00460105 add esp,4
00460108 push eax
00460109 lea ecx,[ebp-1Ch]
0046010C call sf::Vector2<unsigned int>::Vector2<unsigned int> (4499DDh)
00460111 call sf::Texture::getMaximumSize (44A685h)
00460116 mov dword ptr [ebp-24h],eax
00460119 mov edx,dword ptr [ebp-1Ch]
0046011C cmp edx,dword ptr [ebp-24h]
0046011F ja sf::Texture::create+0FDh (46012Dh)
00460121 mov eax,dword ptr [ebp-18h]
00460124 cmp eax,dword ptr [ebp-24h]
00460127 jbe sf::Texture::create+1E3h (460213h)
0046012D mov esi,esp
0046012F mov ecx,dword ptr [__imp_std::endl (50D9C0h)]
00460135 push ecx
00460136 push 4E3680h
0046013B mov edi,esp
0046013D mov edx,dword ptr [ebp-24h]
00460140 push edx
00460141 push 4E3684h
00460146 mov ebx,esp
00460148 mov eax,dword ptr [ebp-24h]
0046014B push eax
0046014C push 4E3688h
00460151 push 4E3694h
00460156 mov eax,esp
00460158 mov ecx,dword ptr [ebp-18h]
0046015B push ecx
0046015C push 4E3698h
00460161 mov ecx,esp
00460163 mov edx,dword ptr [ebp-1Ch]
00460166 push edx
00460167 push 4E369Ch
0046016C push 4E36A0h
00460171 mov dword ptr [ebp-44h],eax
00460174 mov dword ptr [ebp-48h],ecx
00460177 call sf::err (449EBFh)
0046017C push eax
0046017D call std::operator<<<std::char_traits<char> > (44A8D8h)
00460182 add esp,8
00460185 push eax
00460186 call std::operator<<<std::char_traits<char> > (44A8D8h)
0046018B add esp,8
0046018E mov ecx,eax
00460190 call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
00460196 mov ecx,dword ptr [ebp-48h]
00460199 cmp ecx,esp
0046019B call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004601A0 push eax
004601A1 call std::operator<<<std::char_traits<char> > (44A8D8h)
004601A6 add esp,8
004601A9 mov ecx,eax
004601AB call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
004601B1 mov ecx,dword ptr [ebp-44h]
004601B4 cmp ecx,esp
004601B6 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004601BB push eax
004601BC call std::operator<<<std::char_traits<char> > (44A8D8h)
004601C1 add esp,8
004601C4 push eax
004601C5 call std::operator<<<std::char_traits<char> > (44A8D8h)
004601CA add esp,8
004601CD mov ecx,eax
004601CF call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
004601D5 cmp ebx,esp
004601D7 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004601DC push eax
004601DD call std::operator<<<std::char_traits<char> > (44A8D8h)
004601E2 add esp,8
004601E5 mov ecx,eax
004601E7 call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9BCh)]
004601ED cmp edi,esp
004601EF call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004601F4 push eax
004601F5 call std::operator<<<std::char_traits<char> > (44A8D8h)
004601FA add esp,8
004601FD mov ecx,eax
004601FF call dword ptr [__imp_std::basic_ostream<char,std::char_traits<char> >::operator<< (50D9B8h)]
00460205 cmp esi,esp
00460207 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
0046020C xor al,al
0046020E jmp sf::Texture::create+3F3h (460423h)
00460213 mov eax,dword ptr [ebp-10h]
00460216 mov ecx,dword ptr [ebp+8]
00460219 mov dword ptr [eax],ecx
0046021B mov edx,dword ptr [ebp-10h]
0046021E mov eax,dword ptr [ebp+0Ch]
00460221 mov dword ptr [edx+4],eax
00460224 mov ecx,dword ptr [ebp-10h]
00460227 mov edx,dword ptr [ebp-1Ch]
0046022A mov dword ptr [ecx+8],edx
0046022D mov eax,dword ptr [ebp-18h]
00460230 mov dword ptr [ecx+0Ch],eax
00460233 mov ecx,dword ptr [ebp-10h]
00460236 mov byte ptr [ecx+16h],0
0046023A call sf::GlResource::ensureGlContext (44AE23h)
0046023F mov edx,dword ptr [ebp-10h]
00460242 cmp dword ptr [edx+10h],0
00460246 jne sf::Texture::create+248h (460278h)
00460248 mov esi,esp
0046024A lea eax,[texture]
0046024D push eax
0046024E push 1
00460250 call dword ptr [__imp__glGenTextures@8 (50DC8Ch)]
00460256 cmp esi,esp
00460258 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
0046025D push 88h
00460262 push 4E36DCh
00460267 call sf::priv::glCheckError (44AA9Fh)
0046026C add esp,8
0046026F mov ecx,dword ptr [ebp-10h]
00460272 mov edx,dword ptr [texture]
00460275 mov dword ptr [ecx+10h],edx
00460278 lea ecx,[ebp-38h]
0046027B call sf::priv::TextureSaver::TextureSaver (44B5DAh)
00460280 mov dword ptr [ebp-4],0
00460287 mov esi,esp
00460289 mov eax,dword ptr [ebp-10h]
0046028C mov ecx,dword ptr [eax+10h]
0046028F push ecx
00460290 push 0DE1h
00460295 call dword ptr [__imp__glBindTexture@8 (50DC88h)]
0046029B cmp esi,esp
0046029D call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004602A2 push 90h
004602A7 push 4E3718h
004602AC call sf::priv::glCheckError (44AA9Fh)
004602B1 add esp,8
004602B4 mov esi,esp
004602B6 push 0
004602B8 push 1401h
004602BD push 1908h
004602C2 push 0
004602C4 mov edx,dword ptr [ebp-10h]
004602C7 mov eax,dword ptr [edx+0Ch]
004602CA push eax
004602CB mov ecx,dword ptr [ebp-10h]
004602CE mov edx,dword ptr [ecx+8]
004602D1 push edx
004602D2 push 8058h
004602D7 push 0
004602D9 push 0DE1h
004602DE call dword ptr [__imp__glTexImage2D@36 (50DC84h)]
004602E4 cmp esi,esp
004602E6 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004602EB push 91h
004602F0 push 4E3754h
004602F5 call sf::priv::glCheckError (44AA9Fh)
004602FA add esp,8
004602FD mov eax,dword ptr [ebp-10h]
00460300 movzx ecx,byte ptr [eax+15h]
00460304 neg ecx
00460306 sbb ecx,ecx
00460308 and ecx,0FFFFA7D2h
0046030E add ecx,812Fh
00460314 mov esi,esp
00460316 push ecx
00460317 push 2802h
0046031C push 0DE1h
00460321 call dword ptr [__imp__glTexParameteri@12 (50DC80h)]
00460327 cmp esi,esp
00460329 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
0046032E push 92h
00460333 push 4E3790h
00460338 call sf::priv::glCheckError (44AA9Fh)
0046033D add esp,8
00460340 mov edx,dword ptr [ebp-10h]
00460343 movzx eax,byte ptr [edx+15h]
00460347 neg eax
00460349 sbb eax,eax
0046034B and eax,0FFFFA7D2h
00460350 add eax,812Fh
00460355 mov esi,esp
00460357 push eax
00460358 push 2803h
0046035D push 0DE1h
00460362 call dword ptr [__imp__glTexParameteri@12 (50DC80h)]
00460368 cmp esi,esp
0046036A call @ILT+6930(__RTC_CheckEsp) (44AB17h)
0046036F push 93h
00460374 push 4E37CCh
00460379 call sf::priv::glCheckError (44AA9Fh)
0046037E add esp,8
00460381 mov ecx,dword ptr [ebp-10h]
00460384 movzx edx,byte ptr [ecx+14h]
00460388 neg edx
0046038A sbb edx,edx
0046038C neg edx
0046038E add edx,2600h
00460394 mov esi,esp
00460396 push edx
00460397 push 2800h
0046039C push 0DE1h
004603A1 call dword ptr [__imp__glTexParameteri@12 (50DC80h)]
004603A7 cmp esi,esp
004603A9 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004603AE push 94h
004603B3 push 4E3808h
004603B8 call sf::priv::glCheckError (44AA9Fh)
004603BD add esp,8
004603C0 mov eax,dword ptr [ebp-10h]
004603C3 movzx ecx,byte ptr [eax+14h]
004603C7 neg ecx
004603C9 sbb ecx,ecx
004603CB neg ecx
004603CD add ecx,2600h
004603D3 mov esi,esp
004603D5 push ecx
004603D6 push 2801h
004603DB push 0DE1h
004603E0 call dword ptr [__imp__glTexParameteri@12 (50DC80h)]
004603E6 cmp esi,esp
004603E8 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
004603ED push 95h
004603F2 push 4E3844h
004603F7 call sf::priv::glCheckError (44AA9Fh)
004603FC add esp,8
004603FF call `anonymous namespace'::getUniqueId (449E5Bh)
00460404 mov ecx,dword ptr [ebp-10h]
00460407 mov dword ptr [ecx+18h],eax
0046040A mov dword ptr [ecx+1Ch],edx
0046040D mov byte ptr [ebp-3Dh],1
00460411 mov dword ptr [ebp-4],0FFFFFFFFh
00460418 lea ecx,[ebp-38h]
0046041B call sf::priv::TextureSaver::~TextureSaver (44B0ADh)
00460420 mov al,byte ptr [ebp-3Dh]
00460423 push edx
00460424 mov ecx,ebp
00460426 push eax
00460427 lea edx,[ (460454h)]
0046042D call @ILT+9195(@_RTC_CheckStackVars@8) (44B3F0h)
00460432 pop eax
00460433 pop edx
00460434 mov ecx,dword ptr [ebp-0Ch]
00460437 mov dword ptr fs:[0],ecx
0046043E pop ecx
0046043F pop edi
00460440 pop esi
00460441 pop ebx
00460442 add esp,48h
00460445 cmp ebp,esp
00460447 call @ILT+6930(__RTC_CheckEsp) (44AB17h)
0046044C mov esp,ebp
0046044E pop ebp
0046044F ret 8
00460452 mov edi,edi
00460454 db 03h
00460455 db 00h
00460456 db 00h
00460457 db 00h
00460458 db 5ch
00460459 db 04h
0046045A db 46h
0046045B db 00h
0046045C db e4h
0046045D db ffh
0046045E db ffh
0046045F db ffh
00460460 db 08h
00460461 db 00h
00460462 db 00h
00460463 db 00h
00460464 db 8dh
00460465 db 04h
00460466 db 46h
00460467 db 00h
00460468 db d4h
00460469 db ffh
0046046A db ffh
0046046B db ffh
0046046C db 04h
0046046D db 00h
0046046E db 00h
0046046F db 00h
00460470 db 85h
00460471 db 04h
00460472 db 46h
00460473 db 00h
00460474 db c8h
00460475 db ffh
00460476 db ffh
00460477 db ffh
00460478 db 04h
00460479 db 00h
0046047A db 00h
0046047B db 00h
0046047C db 80h
0046047D db 04h
0046047E db 46h
0046047F db 00h
00460480 db 73h
00460481 db 61h
00460482 db 76h
00460483 db 65h
00460484 db 00h
00460485 db 74h
00460486 db 65h
00460487 db 78h
00460488 db 74h
00460489 db 75h
0046048A db 72h
0046048B db 65h
0046048C db 00h
0046048D db 61h
0046048E db 63h
0046048F db 74h
00460490 db 75h
00460491 db 61h
00460492 db 6ch
00460493 db 53h
00460494 db 69h
00460495 db 7ah
00460496 db 65h