1
Graphics / Having a Sprite manager. Trying drawing from it causes access violation
« on: January 03, 2014, 01:41:48 pm »
https://bitbucket.org/makerimages/chtt3r
I draw in TextBox.cpp, it causes an access violation, the call stack looks like this
What may the cause be and how to fix?
I draw in TextBox.cpp, it causes an access violation, the call stack looks like this
sfml-graphics-d-2.dll!5492a253() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for sfml-graphics-d-2.dll]
sfml-graphics-d-2.dll!54932951() Unknown
> Chtt3r.exe!TextBox::TextBox(float x, float y, float w, float h, ChatObject * cO) Line 16 C++
Chtt3r.exe!NotSignedInStage::NotSignedInStage(sf::RenderWindow * rW) Line 23 C++
Chtt3r.exe!main() Line 16 C++
Chtt3r.exe!__tmainCRTStartup() Line 536 C
Chtt3r.exe!mainCRTStartup() Line 377 C
kernel32.dll!75821174() Unknown
ntdll.dll!778fb3f5() Unknown
ntdll.dll!778fb3c8() Unknown
After I get the violation, VS leads me to this line:[Frames below may be incorrect and/or missing, no symbols loaded for sfml-graphics-d-2.dll]
sfml-graphics-d-2.dll!54932951() Unknown
> Chtt3r.exe!TextBox::TextBox(float x, float y, float w, float h, ChatObject * cO) Line 16 C++
Chtt3r.exe!NotSignedInStage::NotSignedInStage(sf::RenderWindow * rW) Line 23 C++
Chtt3r.exe!main() Line 16 C++
Chtt3r.exe!__tmainCRTStartup() Line 536 C
Chtt3r.exe!mainCRTStartup() Line 377 C
kernel32.dll!75821174() Unknown
ntdll.dll!778fb3f5() Unknown
ntdll.dll!778fb3c8() Unknown
spriteCursor=*chat->getSpriteManager()->getSprite(0);
What may the cause be and how to fix?