0

I'm using an NSTreecontroller in conjunction with an NSOutlineView in my program, and my program is constantly spitting out: malloc: *** error for object 0x1d70d0: double free. These messages go away when I remove the bindings in IB. Any idea why this is happening?

Note: This is behavior is not crashing my program, but I suspect that it might be the root of a crasher.

Rich Catalano
  • 1,147
  • 1
  • 14
  • 23

1 Answers1

3

NSTreeController had some broken behavior in Tiger. I don't know whether they've fixed it in Leopard.

As Rentzsch suggests, use NSZombieEnabled to trap the second free attempt (assuming it's a dealloc). See TN2124 for instructions.

Peter Hosey
  • 95,783
  • 15
  • 211
  • 370
  • Thanks. Tuns out my NSTableColumn subclass was misbehaving. And as I suspected, fixing this problem fixed my crasher too! – Rich Catalano Feb 16 '09 at 21:06