执行
`boost::thread(boost::bind(&SomeClass::someStaticFunction, someParam));`
有时会导致崩溃。请注意该功能是静态的。我看到的痕迹是:
* 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
EXC_BAD_ACCESS的可能原因是什么? 可能由于太多线程或内存分配溢出而发生(当应用程序崩溃时是54个线程)?