• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: incorrect checksum for freed object
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: incorrect checksum for freed object


  • Subject: Re: incorrect checksum for freed object
  • From: "email@hidden" <email@hidden>
  • Date: Sat, 1 Aug 2009 12:21:37 -0700

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 email@hidden http://www.killerbytes.com/ (303) 722-0567 voice

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: incorrect checksum for freed object
      • From: Alastair Houghton <email@hidden>
References: 
 >Re: incorrect checksum for freed object (From: Scott Ribe <email@hidden>)

  • Prev by Date: Re: IPhone Textview question
  • Next by Date: Re: Disabling Undo in Core Data
  • Previous by thread: Re: incorrect checksum for freed object
  • Next by thread: Re: incorrect checksum for freed object
  • Index(es):
    • Date
    • Thread