Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ComponentNotThreadSafeErr



I am opening a movie in a thread using:

err = EnterMoviesOnThread(kQTEnterMoviesFlagDontSetComponentsThreadMode);
  err = NewMovieFromProperties(3, propArray, 0, NULL, &movie);

I then set the movie active, detach it from this thread, pass it off to another worker thread, and ExitMoviesOnThread from this thread.

Everything is fine the first few time I do this.  Then, all subsequent runs through the code causes NewMovieFromProperties to return a "ComponentNotThreadSafeErr" with movie set to NULL. 

1. How is this possible with the kQTEnterMoviesFlagDontSetComponentsThreadMode flag set on the previous EnterMoviesOnThread call?
2. Why is it fine the first two or three times through.  (Note: each time the movies tried are .mp3 files)

Thanks, 
Ethan...

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.