English 中文(简体)
SIGSEGV在从国有化StringFromTable获得增援时
原标题:SIGSEGV when getting string from NSLocalizedStringFromTable

有时,在从安全局当地化StringFromTable那里获得护卫时,我正经历一场奇怪的坠毁。 这里是我坠毁事件的相关部分:

CoreFoundation                      0x33c4b7f7 CFEqual   98
CoreFoundation                      0x33cf6a14 __CFBasicHashStandardEquateKeys   20
CoreFoundation                      0x33cf8770 ___CFBasicHashFindBucket_Linear   224
CoreFoundation                      0x33c4b654 CFBasicHashFindBucket   228
CoreFoundation                      0x33c4d4a1 CFDictionaryGetValue   56
CoreFoundation                      0x33c528f5 CFBundleCopyLocalizedString   104
Foundation                          0x32e6ab67 -[NSBundle localizedStringForKey:value:table:]   30
MyApp                          0x000270eb MyApp   155883

造成这种情况的法典是:

NSMutableArray* tableListOptions = [[NSMutableArray alloc] initWithCapacity:1];
[tableListOptions addObject:NSLocalizedStringFromTable(@"My String", @"MyTable", @"")];

是否有任何建议可能造成这一坠毁? 我在我整个时间都使用NS LocalizedStringFromTable,但这一地点似乎造成问题,尽管我一直难以重复坠机事件。

问题回答

暂无回答




相关问题
How does gettext handle dynamic content?

In php (or maybe gettext in general), what does gettext do when it sees a variable to dynamic content? I have 2 cases in mind. 1) Let s say I have <?=$user1?> poked John <?=$user2?>. ...

Explain the Need for Mutexes in Locales, Please

Reading the question Why doesn’t C++ STL support atoi(const string& ) like functions?, I encountered a comment which warned that GCC (at least) has a bug that can slow down multi-threaded ...

How does Vistalizer work

How does Vistalizer manage to override the language limit in Windows Vista Home edition. Which api s does it use to allow installation of Multiple language packages.

Localized exceptions (within a Struts2 app)

I am developing a Struts 2 application with support for multiple languages. If one of the domain objects needs to throw an exception, how can it do so in such a way that the error message is no ...

Rails Globalize plugin help

Has anyone gotten the Globalize plugin to work Rails 2.3.2 or later? If so, could you direct me to some useful info?

热门标签