I am developing iPhone App. i am using NSThread for continuous calling of function which contains C++ code. when i use NSThread or dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0),^{ Function calling } then it gives me "Received memory warning" warning after 5min and crash the application. but when i run this function on main thread/Queue then it works perfactly.
我还尝试过 Xcode 配置程序检查内存泄漏, 但没有发现内存泄漏 。
我如何解决这个问题?
提前感谢。