Memory can't be written error after shutdown

I’m getting a memory can’t be written exception after the shutdown method in juceapplication has been called, any ideas? :?

fixed it :smiley: an ownedarray was holding reference to nonexistant components and causing the problem.