Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: SFML draw function of Window class  (Read 2130 times)

0 Members and 1 Guest are viewing this topic.

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
SFML draw function of Window class
« 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

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6275
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML draw function of Window class
« Reply #1 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
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
Re: SFML draw function of Window class
« Reply #2 on: April 15, 2015, 02:37:08 pm »
latest GitHub master branch (better than SFML 2.2).
can you send me the link?

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6275
  • Thor Developer
    • View Profile
    • Bromeon
Re: SFML draw function of Window class
« Reply #3 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.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
Re: SFML draw function of Window class
« Reply #4 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

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
Re: SFML draw function of Window class
« Reply #5 on: April 15, 2015, 03:13:40 pm »
@Nexus
im getting this error when compiling the sfml
« Last Edit: April 15, 2015, 03:23:21 pm by lorence30 »

lorence30

  • Full Member
  • ***
  • Posts: 124
    • View Profile
    • Email
Re: SFML draw function of Window class
« Reply #6 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?
« Last Edit: April 15, 2015, 03:56:53 pm by lorence30 »

Jesper Juhl

  • Hero Member
  • *****
  • Posts: 1405
    • View Profile
    • Email
Re: SFML draw function of Window class
« Reply #7 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10162
    • View Profile
    • development blog
    • Email
AW: SFML draw function of Window class
« Reply #8 on: April 16, 2015, 09:54:16 am »
That site is no longer in use. Check out the new page: http://www.nightlybuilds.ch/
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/

select_this

  • Full Member
  • ***
  • Posts: 130
  • Current mood: just ate a pinecone
    • View Profile
    • darrenferrie.com
Re: SFML draw function of Window class
« Reply #9 on: April 16, 2015, 03:05:03 pm »
You should probably 301 redirect the old one :)
Follow me on Twitter, why don'tcha? @select_this

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 10162
    • View Profile
    • development blog
    • Email
Re: SFML draw function of Window class
« Reply #10 on: April 16, 2015, 03:16:38 pm »
Done. Well I totally forgot that I still had that site. ;D
Official FAQ: https://www.sfml-dev.org/faq.php
Nightly Builds: https://www.nightlybuilds.ch/
——————————————————————
Dev Blog: https://dev.my-gate.net/
Thor: http://www.bromeon.ch/libraries/thor/