首页| 论坛| 消息
主题:集成google输入法的嵌入式中文输入面板
回帖:逐行跟踪,发现这个地方出了问题:
SpellingTrie &spl_trie = SpellingTrie::get_instance();
if(!spl_trie.load_spl_trie(fp)||省略)这句崩了!加载词库dict文件崩了!
下面是源码部分:不知道哪里有问题,毕竟谷歌的代码,不知道如何修改。
const SpellingTrie* SpellingTrie::get_cpinstance() {
return &get_instance();
}
SpellingTrie& SpellingTrie::get_instance() {
if (NULL == instance_)
instance_ = new SpellingTrie();
return *instance_;
}
下一楼›:这个异常查了资料,据说是频繁的new和delet造成的,这个代码写的也是飘逸;
bool SpellingTr ..
‹上一楼:ubuntu Qt里面,编译可以了,运行的时候 bool ret = googlePinyin->init(qApp->applicationDirPa ..

查看全部回帖(65)
«返回主帖