My application structure is as follows: the main part is written in C ++ and makes heavy use of the stream, and I develop an interface in Objective-C on top of it, if I do not execute the stream, it works fine, but I cannot disconnect, stop the stream, the user interface accidentally broken in a log that I could see after a message
__NSAutoreleaseNoPool(): Object 0x350270 of class NSCFString autoreleased with no pool in place - just leaking
Similar messages come more than once, on googling search, I have to install NSAutoReleasePool to get rid of it, but how can it be integrated with C ++ code.
Edit: The lib core will be activated from the user interface, so I suppose its safe user interface works in the main thread, Lib creates / terminates the thread without notifying the user interface, in which case I can call AutoReleasePool in the user interface
Can anyone guide me?
debugging multithreading cocoa objective-c ++
Ammitg2k12
source share