Mailing Lists: Apple Mailing Lists

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

Re: InitializeQTML() locking up



On Dec 21, 2004, at 12:41 PM, Ken Baer wrote:
On Dec 21, 2004, at 10:53 AM, Greg Chapman wrote:

Are you calling InitializeQTML from your DLLEntryPoint (aka. DLLMain)?
You should not (this is a known limitation on Windows; you can't load
DLLs from a DLLEntryPoint without risking deadlock, and InitializeQTML
loads several DLLs).

I am NOT calling it from the DLL Main, but rather from a function called from the DLL Main.
Same thing, though. You can't load DLLs during your DLLMain call, and that's what you're doing by calling InitializeQTML from a function called from the DLLMain. The deadlock is because only one DLL can load at a time on Windows, and since yours is in the middle of loading, ours can't. So you can't finish loading because your DLLMain is waiting to load our DLL, and our DLL can't load because yours is in the middle of loading.

This was working when I called InitializeQTML() from my main application, outside of the DLL. But, in this case this is a plugin for loading and saving QuickTime, so I want as part of the DLL, and the main application doesn't know anything about it.
In your plugin you should call InitializeQTML the first time your plugin's APIs get called by the application. If you have an Initialize() function in your plugin that always gets called first, that's best.

Greg



On Dec 21, 2004, at 10:17 AM, Ken Baer wrote:

I have some QuickTime code that has been working well on the PC
version of our application.  I have moved it from a larger DLL to a
small DLL plugin.  Now when I call InitiizeQTML(), it never returns
from it.  No error, it just doesn't come back.  I am including
Movies.h, QuickTimeComponents.h, and QTML.h, and have installed the
latest library and includes.  I am linking the latest .lib.  I would
prefer not to use the QuickTime DLL, because we don't want to have to
ship it with our app.

Any ideas?  I can't figure out what it's doing.


-Ken Baer. Hash, Inc. email@hidden

_______________________________________________
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

_______________________________________________ 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
References: 
 >InitializeQTML() locking up (From: Ken Baer <email@hidden>)
 >Re: InitializeQTML() locking up (From: Greg Chapman <email@hidden>)
 >Re: InitializeQTML() locking up (From: Ken Baer <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.