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

Author Topic: [SOLVED] Error running tutorial with SFML 2.0 - LoadLibrary error  (Read 2205 times)

0 Members and 1 Guest are viewing this topic.

MahlerFive

  • Newbie
  • *
  • Posts: 3
    • View Profile
Trying to get SFML 2.0 working. I can compile and link just fine, but when I run the binary I get only a console window and the following error pops up:

Quote
LoadLibrary failed with error 998: Invalid access to memory location.

I'm on Windows 7, using Eclipse Indigo as IDE, using mingw32 (DW2). I've tried using both the static and dynamic libraries in release mode. I've tried both the pre-built download and compiling SFML myself and get the same result. No warnings, no errors when compiling.

Here is my compiler output:

Quote
g++ -IH:\Programming\workspace\SFML-2.0\SFML-2.0-sources\include -O3 -Wall -Wextra -Werror -c -fmessage-length=0 -o src\main.o ..\src\main.cpp
g++ -LH:\Programming\workspace\SFML-2.0\SFML-2.0-dynamic\lib -o JRPG.exe src\main.o -lsfml-graphics -lsfml-window -lsfml-system

I've tried using SFML before and had the exact same problem on this computer a few months ago with the release candidate build as well as whatever up-to-date sources I built from at that time. I did however get it to work on another computer once (which I no longer have access to) so I'm pretty sure it could be related to my hardware/OS. I'm using two Radeon 7970's in crossfire mode and have up-to-date drivers.

I've looked up the error message and basically everything I find is about other people running random games and getting the error. I don't get this error when playing other games. I also tried just making a simple Hello World (no SFML) and do not get the error.

Any help would be super appreciated, itching to get started with SFML :)
« Last Edit: April 30, 2013, 09:26:19 am by MahlerFive »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
AW: Error running tutorial with SFML 2.0 - LoadLibrary error
« Reply #1 on: April 30, 2013, 09:03:41 am »
Seems like a really odd and rare issue and it seems to be related to OpenGL and your graphics card. Have you tried some other OpenGL games?
Also do you have a double graphics card (intel integrated and AMD)? Are both drivers uptodate?
« Last Edit: April 30, 2013, 09:45:20 am by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

MahlerFive

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Error running tutorial with SFML 2.0 - LoadLibrary error
« Reply #2 on: April 30, 2013, 09:25:56 am »
So turns out I didn't have the very latest catalyst drivers as I thought. Once I updated to 13.4 it worked.