Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: weird IOKit crash in IOIteratorNext()




That's a pretty confusing looking for loop construct. You can get the same behavior out of this:

while( object = IOIteratorNext(iter) )

It freaks me out that you have IOIteratorNext() in that first arguent to the for loop.
otherwise the for loop would never be entered at all

I don't know anything about how and when each of the 3 expressions in the for loop is executed behind the scenes in compiler-land, but what you're doing scares me :)
well i think the code you suggested is completely equivalent to mine but i will try to determine if the crash still occurs using your version...

thanks, julian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-dev/email@hidden

This email sent to email@hidden
References: 
 >weird IOKit crash in IOIteratorNext() (From: Julian Mayer <email@hidden>)
 >Re: weird IOKit crash in IOIteratorNext() (From: Ethan Bold <email@hidden>)



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.