Re: weird IOKit crash in IOIteratorNext()
Re: weird IOKit crash in IOIteratorNext()
- Subject: Re: weird IOKit crash in IOIteratorNext()
- From: j o a r <email@hidden>
- Date: Fri, 2 Dec 2005 00:07:03 +0100
On 1 dec 2005, at 22.57, Julian Mayer wrote:
more specifically the line that is crashing is:
"for(object = IOIteratorNext(iter); object != 0; object =
IOIteratorNext(iter)) // iterate through all
"IOATABlockStorageDriver"s"
which seems very strange to me...i can see no obvious defect here...
does anybody have any ideas when/why this crash could occur?
Perhaps you should also use "IOIteratorIsValid()"? The documentation
states that:
"Some iterators will be made invalid if changes are made to the
structure they are iterating over. This function checks the iterator
is still valid and should be called when IOIteratorNext returns zero."
j o a r
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden