CreateCustomControl crash (Urs...?)
CreateCustomControl crash (Urs...?)
- Subject: CreateCustomControl crash (Urs...?)
- From: Howard Moon <email@hidden>
- Date: Fri, 25 Oct 2002 11:32:00 -0700
Hi...
I have managed (with help from Urs) to create a custom control inside
the Pan AudioUnit. I thought everything was fine, until I selected
another AudioUnit, then went back and selected Pan again. It crashed
on the call to CreateCustomControl. Looking at the variables bing
passed I see that the output parameter (the ToolboxObjectClassRef*)
from RegisterToolboxObjectClass - that gets passed to the
CreateCustomControl as part of the ControlDefSpec - is NULL (0)!. The
verify_noerr wrapper around the call to RegisterToolboxObjectClass does
not trap the fact that it is returning -22080. (BTW, how do I look up
that error code???)
I tried calling UnregisterToolboxObjectClass when the AudioUnit view
is being destroyed, but that crashes, too! If I trap the error from
RegisterToolboxObjectClass and return it as the result of CreateUI,
there's no crash...it simply does not draw the rest of my controls.
How can I properly re-register the classref when re-instantiating my
view and its controls? Is there some way to get the existing classref
and use it again when I get this -22080 error? Any help would be
greatly appreciated...this is driving me batty! :-) Thanks...
-Howard
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.