Page 1 of 1

PauseMovie locks the program

Posted: Thu Aug 29, 2024 10:36 pm
by k3pto
My application is to show the same video on three screens. In order to ensure that the audio is synchronized to the video on all three screens, I do the following:
PlayMovie on screen 1 : Delay (100) : PauseMovie on screen 1

PlayMovie on screen 2 : Delay (100) : PauseMovie on screen 2

PlayMovie on screen 3 : Delay (100) : PauseMovie on screen 3

ResumeMovie on screen 1 : ResumeMovie on screen 2 : ResumeMovie on screen 3

On my home PC, about 8 years old, the code works fine with and without the delays. On another, much newer, PC the program will lock if there is no delay. If I am running the program as an .exe, I have to use Task Manager to kill it. I believe a shorter delay would work but I have not tried to determine the smallest delay yet.

Both PCs are running Windows 10.

Re: PauseMovie locks the program

Posted: Fri Aug 30, 2024 1:41 am
by BarryG
You're doing something wrong in your code, but as you didn't post it, we can't help.

[Edit] It's also possible that the video codecs on both PCs are different, and one is causing the problem.

Re: PauseMovie locks the program

Posted: Fri Aug 30, 2024 5:39 am
by jacdelad
And again: Don't post in bugs until it's verified. A mod will move your post in that case...