| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Kevin --_______________________________________________
>AppleMediaBay's free method calls PMStop. The problem is that PMInit is
>not called in the init method. Instead, it is called in initForPM, which
>in turn is called by the start method. This means that in cases where
>start is never called, PMStop is called without PMInit having ever been
>called. And this is exactly what happens if you subclass AppleMediaBay
>and out-match it. AppleMediaBay gets probed, but not started, and then
>when it is freed PMStop gets called when it shouldn't be.
Shouldn't they simply be calling PMStop in stop instead of free? I thought
the implicit mechanism was that anything you did in start you undo in stop
and anything you do in init you undo in free...
You would think that...However, stop() might be called multiple times. I've seen this behavior when my colleagues and I brought up the SAM stuff and got the power management working. Ryan's suggestion of keeping around a member variable is probably the way to go. And I think it should be done in finalize(), not free(). I believe finalize() is called after you've been tagged inactive on a termination up through the stack.
I'll see that the bug gets assigned to the correct component/person for fixing.
A bug number would help...
| References: | |
| >Re: Subclassing AppleMediaBay (bug report) (From: Chris Sarcone <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
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.