Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Window
»
ffplay causes sfml window to freeze and crash.
Print
Pages: [
1
]
Author
Topic: ffplay causes sfml window to freeze and crash. (Read 2150 times)
0 Members and 1 Guest are viewing this topic.
Me-Myself-And-I
Jr. Member
Posts: 93
ffplay causes sfml window to freeze and crash.
«
on:
October 19, 2023, 03:11:54 pm »
Just like the title says"ffplay causes sfml window to freeze and crash".Any ideas how to bypass or fix this problem?
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11034
Re: ffplay causes sfml window to freeze and crash.
«
Reply #1 on:
October 22, 2023, 11:32:49 pm »
Are you processing events still?
I never used ffplay, so don't exactly know how its integrated, but you need to make sure that you're always processing events, otherwise the OS will detect the window as unresponsive.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
Me-Myself-And-I
Jr. Member
Posts: 93
Re: ffplay causes sfml window to freeze and crash.
«
Reply #2 on:
October 23, 2023, 11:10:06 pm »
I figured out the problem.
Ffplay was run by running a batch file using system();
Inside the batch file was this which took parameters that were sent through system();.
@echo off
cd VIDEOS
ffplay -autoexit -left %1 -top %2 -x %3 -y %4 %5
pause
Having pause at the end of the batch file was making the sfml window freeze until a key was pressed while the console was selected.I solved the issue by replacing pause with EXIT /B.
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
Window
»
ffplay causes sfml window to freeze and crash.