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

Author Topic: Texture::loadFromFile causes access violation  (Read 1192 times)

0 Members and 1 Guest are viewing this topic.

betawarz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Texture::loadFromFile causes access violation
« on: January 04, 2014, 11:51:20 pm »
I'm trying to load a Texture image from file. Simply put, I'm calling Texture::loadFromFile and it's causing an access violation error. I've verified that the working directory is what I expect it to be, by using _getcwd. The image file exists at the specified path, relative to the working directory. Yet, I can't seem to get it to work.

I'm using VS2013, on Windows 8.1 64-bit. Any ideas?

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Texture::loadFromFile causes access violation
« Reply #1 on: January 05, 2014, 12:33:13 am »
Are you mixing debug and release modes?
Did you follow the tutorial 1:1 especially for the linking part? ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

betawarz

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Texture::loadFromFile causes access violation
« Reply #2 on: January 05, 2014, 12:51:42 am »
Ah, I had to compile SFML manually, because I'm using VS2013. Works now!