Re: weird IOKit crash in IOIteratorNext()
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On 1 dec 2005, at 22.57, Julian Mayer wrote: more specifically the line that is crashing is: which seems very strange to me...i can see no obvious defect here... does anybody have any ideas when/why this crash could occur? j o a r _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com "for(object = IOIteratorNext(iter); object != 0; object = IOIteratorNext(iter)) // iterate through all "IOATABlockStorageDriver"s" 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." smime.p7s
participants (1)
-
j o a r