At 12:09 PM -0600 8/1/09, Scott Ribe wrote:
 > i'm using pointer to pointer (sometimes called handles) because that
 is what is required when using the usb aspects of the IOKit as
 demonstated in apple's sample code.

FYI, Ken's right. The IOUSB stuff is odd-looking. You have instance vars of
type IOxxx**, and then pass the addresses of those into routines that take
IOxxx*** and fill in your IOxxx** and then you do (*iovar)->Function
throughout the code.

Still though, Shawn's basic point is right: Ken is confused about memory
management *somewhere* in his code.

well... i'm not sure i'd use the word confused, as i do understand memory management, both in general and in cocoa. but i do have a bug somewhere that causes crashes sometimes when i quit by app and attempt to release IOKit/USB "resources". unfortunately, the bug hasn't shown up when i've run with guard malloc on, and the times that i've hit the malloc_error_break breakpoint, the stack trace hasn't helped, and i always run my development versions with zombies, etc. enabled.

for now, i'm just waiting until the crashes start again so that i can again try to find it.

ken



--
Scott Ribe
scott_r...@killerbytes.com
http://www.killerbytes.com/
(303) 722-0567 voice

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to