Executing
`boost::thread(boost::bind(&SomeClass::someStaticFunction, someParam));`
sometimes causing a crash. Please notice that the function is static. The trace I see is:
* thread #35: tid = 0x2a822, 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=<unavailable>) + 246 at thread.cpp:164, stop reason = EXC_BAD_ACCESS (code=1, address=0x20000008)
* frame #0: 0x00d2469e NdsVgconnectTestApp`boost::(anonymous namespace)::thread_proxy(param=<unavailable>) + 246 at thread.cpp:164
frame #1: 0x3b877918 libsystem_pthread.dylib`_pthread_body + 140
frame #2: 0x3b87788a libsystem_pthread.dylib`_pthread_start + 102
What could be the possible reasons for the EXC_BAD_ACCESS? Could it happen due to too many threads or memory allocation overrun (it was 54 threads when the app crashed) ?