Re: weird IOKit crash in IOIteratorNext()
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com while( object = IOIteratorNext(iter) ) otherwise the for loop would never be entered at all thanks, julian _______________________________________________ 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... That's a pretty confusing looking for loop construct. You can get the same behavior out of this: It freaks me out that you have IOIteratorNext() in that first arguent to the for loop. 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... This email sent to site_archiver@lists.apple.com
participants (1)
-
Julian Mayer