Garbage Collection

Discussion in 'Mac Programming' started by laprej, Jul 16, 2008.

  1. laprej macrumors regular

    Joined:
    Oct 14, 2005
    Location:
    Troy, NY
    #1
    Has anyone else run into the problem that using Garbage Collection causes your project to crash? What could cause this? I would hope that if it were running out of memory performance would just degrade, not crash. On the other hand, if it's releasing stuff early, I think that would be indicative of an incorrect implementation on Apple's part, right?
     
  2. BigJimSlade macrumors member

    Joined:
    Dec 16, 2005
    #2
    *removed*
     
  3. kpua macrumors 6502

    Joined:
    Jul 25, 2006
    #3
    There are several possibile causes, but it's impossible to say for sure without seeing a backtrace.
     
  4. laprej thread starter macrumors regular

    Joined:
    Oct 14, 2005
    Location:
    Troy, NY
    #4
    I would love to supply the folks at MacRumors with a trace. Unfortunately, it wouldn't be extremely helpful IMO. I'm writing a discrete event simulator using NSInvocations. Otherwise my stack may have 4000+ frames on it (no, I'm not making that number up - early attempts at debugging this showed this to be the case) I feel like many programmers never need to go down this route and that may be why it's not working?
     

Share This Page