SFML community forums

Help => Window => Topic started by: lorence30 on April 15, 2015, 01:49:56 pm

Title: SFML draw function of Window class
Post by: lorence30 on April 15, 2015, 01:49:56 pm
Ive been trying to figure out my problem for a week and and i have searched thouroughly in google
i dont know why im getting this run time error "unhandled exception"

i suspect that theres problem in draw function of window class

im linking 2.2 sfml.

i tried this solution:
i replace the dll files of sfml 2.2 with 2.1 and it all works, but it seems its like im using 2.1
Title: Re: SFML draw function of Window class
Post by: Nexus on April 15, 2015, 02:03:03 pm
Make sure all the library versions are consistent. If needed, delete everything related to SFML and download the latest GitHub master branch (better than SFML 2.2).

If the problem persists: http://en.sfml-dev.org/forums/index.php?topic=5559.msg36368#msg36368
Title: Re: SFML draw function of Window class
Post by: lorence30 on April 15, 2015, 02:37:08 pm
latest GitHub master branch (better than SFML 2.2).
can you send me the link?
Title: Re: SFML draw function of Window class
Post by: Nexus on April 15, 2015, 02:46:23 pm
Have you checked the SFML homepage? :)

https://github.com/SFML/SFML/
You need to build it yourself though with CMake (see tutorial). If you don't want to do that, you can use eXpl0it3r's Nightly Builds. He has a thread in the project forum.
Title: Re: SFML draw function of Window class
Post by: lorence30 on April 15, 2015, 02:57:05 pm
You need to build it yourself though with CMake (see tutorial)
i know how to build sfml, but when im compiling the sfml.cbp theres an error in the middle maybe im
going to try it again
Title: Re: SFML draw function of Window class
Post by: lorence30 on April 15, 2015, 03:13:40 pm
@Nexus
im getting this error when compiling the sfml
Title: Re: SFML draw function of Window class
Post by: lorence30 on April 15, 2015, 03:54:19 pm
@Nexus
hey thanks it all works now, i use nightly's build
but i dont know if i downloaded sfml 2.2,
http://sfml.my-gate.net/nightly/
i downloaded his "Visual C++ 11/2012 - 32 bit"
im using Visual studio community 2013 is that okay?
Title: Re: SFML draw function of Window class
Post by: Jesper Juhl on April 15, 2015, 04:25:32 pm
i downloaded his "Visual C++ 11/2012 - 32 bit"
im using Visual studio community 2013 is that okay?
Not really.
The compiler used to build SFML should be the exact same one as used to build your application or you are almost guaranteed to run into strange crashes at some point in time.
Title: AW: SFML draw function of Window class
Post by: eXpl0it3r on April 16, 2015, 09:54:16 am
That site is no longer in use. Check out the new page: http://www.nightlybuilds.ch/
Title: Re: SFML draw function of Window class
Post by: select_this on April 16, 2015, 03:05:03 pm
You should probably 301 redirect the old one :)
Title: Re: SFML draw function of Window class
Post by: eXpl0it3r on April 16, 2015, 03:16:38 pm
Done. Well I totally forgot that I still had that site. ;D