Page 1 of 1

[solved] LoadMovie fails

Posted: Sun Aug 11, 2024 10:51 pm
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.

Re: LoadMovie fails

Posted: Mon Aug 12, 2024 1:29 am
by BarryG
Try the Mega version instead of Standard for K-Lite. Sounds like Standard hasn't installed a codec that you need.