Re: Crashes with certain AUs, QuickDraw and Logic 7
Re: Crashes with certain AUs, QuickDraw and Logic 7
- Subject: Re: Crashes with certain AUs, QuickDraw and Logic 7
- From: Arne Scheffler <email@hidden>
- Date: Tue, 7 Dec 2004 11:55:53 +0100
Hi Stefan and all,
I just found out that the port which is invalid in our plug is the
global QD Port. Our plug is not using Quickdraw. The only QD call we
made was GetMouse in some rare conditions.
And that was the call that crashes logic. After investigation, when
GetMouse failed, I observed that it only happens if a drag & drop
operation was done in our plug.
So I think that the carbon drag and drop API mixed with the Cocoa stuff
you are using is the one which destroys the port.
I can get around this by checking if the GetQDGlobalsThePort () is
valid and not call GetMouse.
I will try to build a sample AU so that the carbon/cocoa engineers can
have a look at it.
cheers
arne
On 17.11.2004, at 19:31, Stefan Gretscher wrote:
To all AU developers on this list:
Logic 7 suffers from crashes that might occur when the scroll bars in
the Arrange window are used after working with (=opening, modifying
parameters, closing) certain AU GUIs. We have been in contact with
some AU developers about this, and it turns out that the crashes are
triggered by AUs leaving the current QuickDraw port in some undefined
state (this can be tested by calling IsValidPort(GetPort())).
Developers whos AUs are suffering from the crash should please check
all places in their code where QD ports are manipulated in any way and
make sure that whenever they are modifying the current port, they are
restoring it properly when drawing etc. is done.
So far, ensuring this is handled properly always solved the crash
problem in Logic 7.
If anybody is experiencing this problem and the above solution doesn't
work, please contact me immediately.
Thank you for making sure your AUs will work well in Logic 7,
Stefan
PS: The problem did not occur in earlier versions of Logic because
they were using different event propagation schemes.
Stefan Gretscher
plug-in development & 3rd party plug-in support
Emagic Soft- & Hardware GmbH
a subsidiary of Apple Computer, Inc.
email: email@hidden
phone: (+49)-4101-495-586
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
arne
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden