The global variable "app" is the Window ID. It's the result of: app=OpenWindow(#PB_Any,).
My mistake, I meant to put is app the window handle or the Unique ID created by OpenWindow(), but somehow I kinda put a garbled mess
. but in the case of the PlayMovie() (according to the manual), app should be the window handle eg. PlayMovie(music,WindowID(app)). not the identifier created by open window alone.
Also, I'm playing MP3s with this code, not an actual video. Sometimes they play (mostly), but now, since Win 7 64-bit, I'm getting errors like the above.
I knew that already... contrary to popular belief I can read...
it is possible that you have a bad codec, but that wouldn't explain your other problems... or maybe it would? That is something I cannot answer without being sat at your desk
netmaestro is right, too. The variable "app" has nothing to do with it. Why is the value of "music", being 0, getting into the wrong part of the decision? The status message should show instead. And no, "music" is not used in a thread and getting changed anywhere else.
I didn't disagree with either of you on the point of the if music=0 thang... Now, that is the part which I didn't understand myself. I could not reproduce it. The only obvious thing that stood out to me was app wasn't wrapped in WindowID(app). but it still didn't explain that particular problem.
But I am sorry my contributions aren't useful to you. I'll keep quiet next time.