(i'm not sure if this is the right list for this question or not, as i am developing a cocoa application using IOKit. if this isn't the right list, could someone please tell me the right list. thanx.)

i'm just starting on developing a core data document base app that talks to a usb device. sometimes, but not always, i'm getting crashes when i'm either releasing my IOUSBDeviceInterface300 or my IOUSBInterfaceInterface300. the error i get on the console is:

malloc: *** error for object 0x102662970: incorrect checksum for freed object - object was probably modified after being freed.
*** set a breakpoint in malloc_error_break to debug

and i have set that breakpoint. the stack trace at the time is:

#0      0x83d7aa51 in malloc_error_break
#1      0x83d75ad0 in szone_error
#2      0x83cb5571 in tiny_free_list_add_ptr
#3      0x83cb28cf in szone_free
#4      0x025876ba in IOUSBDeviceClass::~IOUSBDeviceClass
#5      0x02586f0d in IOUSBIUnknown::release
#6 0x00001f1a in -[BaseUSBInterface releaseResources] at BaseUSBInterface.mm:154

in response to:
        err = (*(self.interface))->Release( self.interface);
or
        err = (*(self.device))->Release( self.device);

where interface and device are declared as follows:
@property ( assign, nonatomic) IOUSBDeviceInterface300** device; @property ( assign, nonatomic) IOUSBInterfaceInterface300** interface; and synthesized. i am running in 64 bit mode and have NOT declared my own iVars for these.

these errors don't happen every time and i've yet to be able to determine a pattern that causes them. i realize that this is some sort of memory corruption problem, but i'm at a loss as to how to find it. i do have NSZombieEnabled set to YES and CFZombieLevel set to 3.

can anyone one offer suggestions as to how to find this problem.

thanx,
ken
_______________________________________________

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