0

I am running a subroutine which will have some implications on the memory occupied in the given time frame and has the capability to crash the app.

I am wondering if there is a macro that can force the app to disable ARC just for that particular block of code in a single file (similar to how you would implement native assembly instructions in a block of code).

p0lAris
  • 4,750
  • 8
  • 45
  • 80
  • 1
    Are you 100 % positive that you can’t do without the magic? – zoul Jul 11 '14 at 10:49
  • 2
    You can [disable ARC for individual files](http://stackoverflow.com/questions/6646052/how-can-i-disable-arc-for-a-single-file-in-a-project). Personally, I'd move your "subroutine" into a standalone class, separate it into its own file(s) and manage it that way, but it's hard to comment in too much detail without knowing the code. – Matt Gibson Jul 11 '14 at 11:00
  • Its nearly impossible!! The only way I can suggest is to move that particular block in to separate file and disable ARC in that file !!! – Dileep Jul 11 '14 at 11:00
  • @MattGibson, DILi, thanks for the input. That's something I can do but that's making the code a bit ugly and out-of-place but I can work around it (maybe for now). Thanks! – p0lAris Jul 11 '14 at 11:41

0 Answers0