FROM : Thomas Bauer
DATE : Tue Jul 18 18:46:37 2006
>
> I hate to be a skeptic, but releaseExclusiveAccess sanity checks
> itself against an internal reference count. Extraneous releases are
> essentially just no-ops. The only way it would cause harm is if the
> object upon which it was been invoked was invalid. Which makes me
> wonder...
>
There was a "aquireExclusiveAccess" just before running the DRErase
via a DREraseProgressPanel
and an immediate releaseExclusiveAccess in the notification callback
after the erase. Maybe at this moment this causes a problem?
The code continued fine into a deviceStatusChanged callback (caused
by DRDevice going into transition) but crashed in some parallel
thread (belonging to the DRFramework I guess).
> Do you ever release a DRDevice? Its unlikely you would have to,
> since all the methods to get them from DR are get and not copy or
> create. Releasing DRDevices out from under DR is a very common
> mistake, and would cause this symptom.
No, I never release a DRDevice.
cheers
tom
> -Ed
>
>
DATE : Tue Jul 18 18:46:37 2006
>
> I hate to be a skeptic, but releaseExclusiveAccess sanity checks
> itself against an internal reference count. Extraneous releases are
> essentially just no-ops. The only way it would cause harm is if the
> object upon which it was been invoked was invalid. Which makes me
> wonder...
>
There was a "aquireExclusiveAccess" just before running the DRErase
via a DREraseProgressPanel
and an immediate releaseExclusiveAccess in the notification callback
after the erase. Maybe at this moment this causes a problem?
The code continued fine into a deviceStatusChanged callback (caused
by DRDevice going into transition) but crashed in some parallel
thread (belonging to the DRFramework I guess).
> Do you ever release a DRDevice? Its unlikely you would have to,
> since all the methods to get them from DR are get and not copy or
> create. Releasing DRDevices out from under DR is a very common
> mistake, and would cause this symptom.
No, I never release a DRDevice.
cheers
tom
> -Ed
>
>
| Related mails | Author | Date |
|---|---|---|
| Thomas Bauer | Jul 17, 23:22 | |
| Ed Wynne | Jul 17, 23:53 | |
| Thomas Bauer | Jul 17, 23:56 | |
| Mike Blaguszewski | Jul 18, 00:08 | |
| Uli Kusterer | Jul 18, 00:59 | |
| Thomas Bauer | Jul 18, 16:17 | |
| Ed Wynne | Jul 18, 17:41 | |
| Thomas Bauer | Jul 18, 18:46 | |
| Thomas Bauer | Jul 19, 10:11 | |
| Ed Wynne | Jul 19, 18:17 |






Cocoa mail archive

