SFML community forums
Help => General => Topic started by: scoops on August 08, 2019, 12:42:32 pm
-
Hello.
I'm using SFML.NET 2.4 in Visual Studio 2017. (I had problem with linking in 2.5, so I decided to use older version)
I have a problem with deplyoing my app. I want to send it to friend of mine so she could try to play it.
The problem occurs when I try to start the compiled app, when I do it in /Release/ folder everything works correctly, but when I copy that folder to any other directory it just doesn't start. Without any error.
I've read on main SFML main page that I need to link static libraries, but I don't have any in downloaded .zip file. I tried to use ILMerge to get everything in one file, but this doesn't work at all.
Can someone tell me what to do step by step to get this working?
Thanks
-
Try launching it from the command line, maybe there's some output.
Or check the Windows event log.
Otherwise, without errors it's kind of impossible to tell what's going on...
-
I checked Windows Event Log and here is the problem:
Error packet 1823664934440769961, type 5
Event name: CLR20r3
Answer: Unavailable
CAB file identifier: 0
P1: spaceinvadersfml2.exe
P2: 0.0.0.0
P3: ab37e89d
P4: sfml-graphics
P5: 2.4.2.0
P6: ae1f697c
P7: 2a
P8: 34
P9: SFML.LoadingFailedException
P10:
Assigned files:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB435.tmp.dmp
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB55F.tmp.WERInternalMetadata.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB57F.tmp.xml
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB589.tmp.csv
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WERB5B9.tmp.txt
These files could be available here:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_spaceinvadersfml_28d917fdc24e15b4b1d9c57de6ec42ffca43e26e_1f4fde9f_108cbc73
It looks like there are missing files, but how can I attach them to my .exe file?
-
Are you still on Windows 7?
Googling the event name, I found various posts, such as this one: https://hasstoppedworking.com/fix-clr20r3-event-issues/
-
No, I'm on Windows 10 Home version.
According to your link:
On Home version I can not open gpedit.msc (it's only available on pro/enterprise version).
I have already checked 'Copy always' to every file in my solution also I have latest version of Microsoft SQL.
I've tried to paste to my app.config file these lines:
<startup useLegacyV2RuntimeActivationPolicy=”true”>
<supportedRuntime version=”v4.0″/>
</startup>
and I can not compile my program, this parameter is unacceptable: useLegacyV2RuntimeActivationPolicy=”true”