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

Author Topic: Unable to setup in Visual Studio 2013 (crash in sfml-graphics-2-d.dll) [Solved]  (Read 1449 times)

0 Members and 1 Guest are viewing this topic.

lampyridae

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Hi,

I'm using Visual Studio 2013 on Windows 8.1 64bit.

I've set up an empty C++ project as per the tutorial. I've downloaded «Visual C++ 12 (2013) - 32-bit», since the target is 32bit.

I've made sure that the project's active configuration (Debug) match the libraries (sfml-graphics-d.lib, sfml-window-d.lib, sfml-system-d.lib).

I compile successfully the code of the tutorial. Unfortunately, when I run it, I get a crash at the following line:

window.draw(shape);
 

A crash is reported because of access violation concerning sfml-graphics-2-d.lib, trying to execute at location 0x00000000.

If I comment out "window.draw(shape);", I get to successfully display a blank window.

I've double checked everything in the tutorial and googled for a while. Still can't find any solution.

Anyone has advice as to what I should investigate now?
« Last Edit: January 16, 2015, 06:08:36 am by lampyridae »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11016
    • View Profile
    • development blog
    • Email
AW: Unable to setup in Visual Studio 2013 (crash in sfml-graphics-2-d.dll)
« Reply #1 on: January 15, 2015, 09:12:29 am »
Is your graphics driver uptodate?
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

lampyridae

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Unable to setup in Visual Studio 2013 (crash in sfml-graphics-2-d.dll)
« Reply #2 on: January 16, 2015, 06:06:30 am »
My graphics driver was indeed the problem.

My thrusty old Toshiba's graphics card is an ATI Mobility Radeon HD 3400. AMD's official drivers for that card, as it turns out, are pretty terrible and outdated. Fortunately, I found a driver for it on http://www.tweakforce.com.

The green circle from the tutorial is now displayed. Fixed!

Thank you very much for setting me on the right track.