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 - JudgeWargrave

Pages: [1]
1
General / Re: Runs in debug but not release (fails to create window)
« on: January 14, 2017, 04:21:00 pm »
In the project properties under Linker>Input, the additional directories are openal32.lib, sfml-system.lib, sfml-window.lib, sfml-graphics.lib, and sfml-audio.lib. This is in release configuration. In debug configuration I have sfml-system-d.lib, sfml-window-d.lib, sfml-graphics-d.lib, sfml-audio-d.lib. So I believe I have the right libraries linked.

Edit: Just to see if it would have any effect, I tried switching to static linking, and it works in both debug and release in that case. So in a practical sense the problem is solved, but I'm still curious why only the dynamic release version has a problem. It seems like it must be a problem with the libraries like you two said, but it's odd because I must have been linking the right ones, since I just changed the file names to -s and it works. Maybe something went wrong with the sfml-xxx.libs or .dlls specifically and redownloading them would fix it.

2
General / Runs in debug but not release (fails to create window)
« on: January 13, 2017, 06:15:26 pm »
I'm running Windows 10. SFML 2.4.1. Dynamic linking. I'm building with Visual Studio 2015.

My game builds, both in debug and release, and runs exactly as expected in debug. However, when running the release .exe, I get the message: "The program can't start because sfml-window-d-2.dll is missing from your computer." The same message regarding sfml-system-d-2.dll pops up twice as well. This immediately seems strange because although these .dlls aren't in the folder with the .exe, they are the debug versions so they shouldn't be needed, right?

If I oblige the message and move the -d versions into the folder, the game crashes at the point the window would be created:

std::cout << "creating window...";
window.create(sf::VideoMode(LOCAL_INITIAL_RES.x, LOCAL_INITIAL_RES.y), NAME);
std::cout << "...created window" << std::endl;
 

This same code is passed over without error in debug.

If I click the debug option after the crash, Visual Studio opens xutility at line 166 and gives a read access violation: "_Parent_proxy was 0xFFFFFFFF".

The project properties seem to be correct.

Any ideas what could be going wrong here?

Pages: [1]