Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Entertainment » microsoft.public.windowsmedia.sdk
Thread: IWMDMStorageControl::Insert: question about CoInitialize, CoInitializeEx and trheading mode

HTVi
TV Discussion Newsgroups

IWMDMStorageControl::Insert: question about CoInitialize, CoInitializeEx and trheading mode
"jerome172" <jerome[ at ]jerome-robert.com> 4/16/2007 8:21:15 AM
Hi all,

I'm using the WMDM_MODE_THREAD flag when calling the Insert method. I
saw that:
1. if I use CoInitialize, the Insert method returns immediately but
the process does not look like "really" threaded. For instance, a call
to Sleep(1000) after my Insert will make the transfer to pause and
resume after the Sleep. Like if it was executed in the same thread.
2. if I use CoInitializeEx with the COINIT_MULTITHREADED flag,
everything works fine: a Sleep won't stop the transfer, which seems to
be really executed in a separate thread.

Now, the people who'll use my library would prefer me to use a simple
CoInitialize... but then the thread mode works odd.

Did I miss something? Or is WMDM absolutely designed to work with
CoInitializeEx and COINIT_MULTITHREADED?

Thank you for your help.
Jérôme.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen