I'm getting an EXC_BAD_ACCESS error, related to nimDecRefIsLast:
136 proc nimDecRefIsLast(p: pointer): bool {.compilerRtl, inl.} =
137 if p != nil:
138 var cell = head(p)
-> 139 if (cell.rc and not rcMask) == 0:
140 result = true
141 when traceCollector:
142 cprintf("[ABOUT TO DESTROY] %p\n", cell)
What could be the cause?
(basically, it's a loop doing the same thing over and over. If it's repeat X number of times, it works. If it gets repeat >X times, it crashes)