相关疑难解决方法(0)

我是如何在@ try/@ catch块崩溃的?

我收到了以下崩溃报告(截断)

Exception Type:  EXC_CRASH (SIGSEGV)
Exception Codes: 0x00000000, 0x00000000
Crashed Thread:  0

Thread 0 name:  Dispatch queue: com.apple.main-thread
Thread 0 Crashed:
0   libsystem_kernel.dylib          0x36df00d8 __psynch_mutexwait + 24
1   libsystem_c.dylib               0x31760674 pthread_mutex_lock + 376
2   CoreFoundation                  0x31f2338a CFRunLoopWakeUp + 50
3   WebCore                         0x308d0bc8 _WebThreadRun + 284
4   UIKit                           0x37921c7a -[UIWebDocumentView _runLoadBlock:] + 38
5   UIKit                           0x37921c3a -[UIWebDocumentView _cleanUpFrameStateAndLoad:] + 114
6   UIKit                           0x37921bbe -[UIWebDocumentView loadHTMLString:baseURL:] + 78
Run Code Online (Sandbox Code Playgroud)

关注的是调用代码如下所示:

@try {
    [webView loadHTMLString:htmlString baseURL:nil];
    [webView setNeedsDisplay];     
}
@catch (NSException *exception) {...}
Run Code Online (Sandbox Code Playgroud)

那么,我是如何设法从异常处理程序中抛出异常的呢? …

exception-handling exception ios

2
推荐指数
1
解决办法
1572
查看次数

标签 统计

exception ×1

exception-handling ×1

ios ×1