[solved] LoadMovie fails

Everything else that doesn't fall into one of the other PB categories.
k3pto
User
User
Posts: 87
Joined: Sat Jan 17, 2015 5:24 pm

[solved] LoadMovie fails

Post by k3pto »

Most of my application is up and running thanks to lots of help from here :D I am now encountering an error when I run my application on another Windows 10 PC. On my home PC I loaded K-Lite_Codec_Pack_1845_Standard so I can show a movie. It is working. I took the same application, and movie, to another PC, installed K-Lite_Codec_Pack_1845_Standard but I still get a return value of 0 from LoadMovie. Any ideas?

Just as a side note: neither PC shows the codec in System Information.

I made some small changes to the code and now the Load seems to be working - mostly. Now it looks like I am facing a race condition of some kind. I am loading the same movie onto three monitors. With my home PC (about 8 yrs old) it works just fine. Running on a newer and faster PC it gets hung up if I let the program run. I cannot even get the program to pause within the programming environment, I have to kill the program. If I single step through the code it works OK. The sequence for each of the three monitors is: LoadMovie, MovieAudio, ResizeMovie, PlayMovie then PauseMovie. I believe it is getting hung up on either the Play or Pause statements. Next I will be inserting a Delay statement somewhere in the sequence for each monitor. Any ideas will be helpful.

I put a delay preceding some statements. It now works.
Last edited by k3pto on Sat Aug 17, 2024 5:26 pm, edited 2 times in total.
BarryG
Addict
Addict
Posts: 4218
Joined: Thu Apr 18, 2019 8:17 am

Re: LoadMovie fails

Post by BarryG »

Try the Mega version instead of Standard for K-Lite. Sounds like Standard hasn't installed a codec that you need.
Post Reply