SFML community forums

Help => General => Topic started by: CreaM on November 26, 2015, 06:50:15 pm

Title: Wont run on windows 10
Post by: CreaM on November 26, 2015, 06:50:15 pm
Hello, I have sended a couple of programs to a friend, but he cant run them.
All the programs are just loading but wont either load or crash. Ive tried both Debug and Release but nothing works.
Im using vs 2015 on my win 7. He has win 10. We both have a 64bit-operating system. And ofc. everything runs fine on my PC.

Thanks for any ideas.
Title: Wont run on windows 10
Post by: eXpl0it3r on November 26, 2015, 07:04:47 pm
"won't load or crash"
No details of the crash?
Title: Re: Wont run on windows 10
Post by: CreaM on November 26, 2015, 07:13:46 pm
It doesnt crash. But it wont load either. It is just loading but nothing appears - there is no error message to post + he tried to run it for windows 7 but it also didnt help.
Title: Re: Wont run on windows 10
Post by: Jesper Juhl on November 26, 2015, 07:36:30 pm
Try running it under a debugger so you can see what actually happens.
Title: Re: Wont run on windows 10
Post by: Spirro on November 26, 2015, 08:24:47 pm
Try running the program from the command window to see if SFML is spitting out any errors as well.
Title: Re: Wont run on windows 10
Post by: noct on December 05, 2015, 10:58:54 am
I've got the same problem. My app is working correctly on my PC with win8 64bit. When I send it to a friend with win10 64 bit, he can open it as usual, but only the console is visible. It also displays main window, but it is empty. What should I do, or what info do you need to help me?
Title: Re: Wont run on windows 10
Post by: Mario on December 05, 2015, 08:46:37 pm
Console output (if there is any). Also make sure they've got the latest graphics drivers and OpenGL is working fine (e.g. by trying some other program that uses OpenGL).
Title: Re: Wont run on windows 10
Post by: noct on December 05, 2015, 11:52:34 pm
Theres no console output. I've sent him ready to go .exe file (with additional files, libs etc). Should I upload this to you?
Title: Wont run on windows 10
Post by: eXpl0it3r on December 06, 2015, 10:08:16 am
You could, then I can see for myself.
Title: Re: Wont run on windows 10
Post by: noct on December 07, 2015, 12:22:54 pm
I've attached some libs and all necessary (mostly txt and png) files.

My friend said me that some apps using openGL were working fine: minecraft, google earth

Zippy (http://www27.zippyshare.com/v/TghtrF2v/file.html)
Pass: sfmldev
vt scan of .exe file (https://www.virustotal.com/pl/file/6a094b60bfb6ec772b8f4469922adcd50ea3c810226ba56ae02267cfee413526/analysis/1449486941/)

Btw I've tried to execute this on the other platforms and devices. Works fine on desktop winME-win8 and virtualbox' win10.
Title: Re: Wont run on windows 10
Post by: eXpl0it3r on December 07, 2015, 12:50:07 pm
What window resolution do you set? Seems like the window resolution is bigger than the screen, which will lead to the application not showing up.

(http://i.imgur.com/veeFu4a.png)
Title: Re: Wont run on windows 10
Post by: noct on December 08, 2015, 12:07:59 am
<insert some epic facepalm gifs>
That was it.
How should I prevent bugs like that? Should I make it possible to pick it by user, or auto get his screen resolution?
Title: Re: Wont run on windows 10
Post by: eXpl0it3r on December 08, 2015, 12:30:32 am
Pick whatever solution you're most comfortable with. You might find sf::VideoMode::getDesktopMode() (http://www.sfml-dev.org/documentation/2.3.2/classsf_1_1VideoMode.php#ac1be160a4342e6eafb2cb0e8c9b18d44) useful.
Title: Re: Wont run on windows 10
Post by: noct on December 08, 2015, 02:53:18 pm
Now it displays an additional window with some gfx/sfx options. I wish I had a c# System.Windows.Forms for that.
Thanks for help @eXpl0it3r