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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - RedstonerKBC

Pages: [1]
1
Graphics / Re: Texture.loadFromFile() accessing invalid memory location
« on: August 19, 2019, 07:45:44 pm »
Update: I switched to the Debug version of the libraries and now my code runs fine with no issues. I'm curious though, why? When should I use the debug vs non-debug libraries?

2
Graphics / Texture.loadFromFile() accessing invalid memory location
« on: August 18, 2019, 05:25:00 am »
The docs say this code should return false if loading fails, but instead I get the following error:

#include <SFML/Graphics>

int main(){
sf::Texture tex;

if(!tex.loadFromFile("Player.png"))//exception thrown here
return -1;
}
 

Exception thrown at 0x564D334D (vcruntime140.dll) in My Project.exe:
0xC0000005: Access violation reading location 0x004C4000.
 

I'm using the .dll method as explained in the tutorials how to setup SFML for Visual Studio 2019. SFML version 2.5.1-x86.

When I comment out the line my game runs fine. If I pass it an empty string or put/remove the .png file from the working directory it still raises the exception.

3
General / Missing .dll error
« on: August 08, 2019, 08:06:00 am »
I'm new to sfml, running the latest version and using the dynamic builds, not the static ones. Hopefully that's the easier option for 1st-time users.

I followed the tutorials but when I run my project it gives me an error:

"The program can't start because sfml-system-2.dll is missing from your computer. Try reinstalling the program to fix this problem."

Now I'm sure I've given the right paths to the include files, the libraries, and the additional dependencies. I don't see any "sfml-system-2.dll" file anywhere, not even in the tutorials.

Edit: Neeeeeevermind I forgot I have to manually copy/paste the .dlls into the executable's folder ::)

Pages: [1]