Movie Player Causing Runtime error on Windows 11

Has anyone seen this?

On Windows 11 only, runtime error occurs at the MovieStopped Event handler. The only code there is: quit

See the attached screen shot.

I am afraid I don’t have an answer. But as a possible workaround, what happens if you put Quit in another method, and then, in the event handler, call the method instead?

That’s a great idea. I’ll give it a try.

This seems to have solved the issue. I’m thinking it may have been a timing issue where the system it happens on is too fast and trying to quit before the movie player is completely finished.

1 Like

Well darn, it seems to have happened again. I’m going to do more tinkering. If it is truly a timing issue, I should be able to start a timer, give it some time to settle down before exiting the app.

Yep, that would have been my next suggestion. :slight_smile:

1 Like