Auto-release Pools and Background Threads

Regarding Objective-C programming for MAC OS X and IOS: (from https://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmAutoreleasePools.html ) Cocoa always expects there to be an autorelease pool available. If a pool is not available, autoreleased objects do not get released and your application leaks memory. If you send an autorelease message when a pool is not …

IOS / Mac OS X Link Problems involving symbols such as __ZTVN10__cxxabiv121__vmi_class_type_infoE

If linking produces undefined symbols involving the following: __ZTVN10__cxxabiv121__vmi_class_type_infoE __Znwm __ZdlPv ___gxx_personality_sj0 ___cxa_begin_catch __ZTVN10__cxxabiv120__si_class_type_infoE ___cxa_end_catch __ZdaPv __ZTVN10__cxxabiv117__class_type_infoE etc. It means you’re NOT linking with the C++ runtime libs.  To link with the C++ runtime libs, include an empty source file having a file extension of “.cpp”.   For more information, see …

IOS Error: Broken pipe … Failed to send ClientHello

The following error can be caused by a firewall blocking the iPAD/iPhone wifi connection: … connect successful (1) clientHelloMajorMinorVersion: 3.1 buildClientHello: majorVersion: 3 minorVersion: 1 numRandomBytes: 32 sessionIdSize: 0 numCipherSuites: 10 numCompressionMethods: 1 socketErrno: 32 socketError: Broken pipe Error sending on socket send_size: 58 Failed to send TLS message. Failed …

Undefined symbol: _res_9_query

Question: I had some IMAP code working with Chilkat iOS 9.2.1 version. Tried upgrading to 9.3.0 (wanted to use the new attachments functionality) and got the following error: Undefined symbols for architecture i386: “_res_9_query”, referenced from: ChilkatResolve::mxLookup(char const*, ScoredStrings&, LogBase&, bool) in libchilkatIos.a(ChilkatResolve.o) ChilkatResolve::dkimLookup(char const*, StringBuffer&, LogBase&, bool) in libchilkatIos.a(ChilkatResolve.o) …

__dyld__dyld_start error when launching your iOS app

A note from a Chilkat customer using the IOS 4.3/5.0 libraries: …when running in the simulator, it ended up in gdb with a “__dlyd__dlyd_start message. I looked around on Google and found this: http://blog.ginzburgconsulting.com/__dyld__dyld_start-error-when-launching-your-ios-app/ So I added the -weak-lSystem flag in Xcode (Targets -> Your target -> Build Setting tab) …