Nhunspell启动它的问题。 [英] Nhunspell problem with initiating it.

查看:74
本文介绍了Nhunspell启动它的问题。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

一切都很好,这确实有效,但后来它停止了工作。



Public engSpell As New NHunspell.Hunspell(en_us.aff,en_us .dic)

Public nameSpell As New NHunspell.Hunspell(en_USNames.aff,en_USNames.dic)



我下载了名称字典,它在简单的设置中工作得很好。然后我添加了在我想要的时候让它运行所需的代码。它失败了。





有什么想法吗?



我试过的:



我删除了我添加的所有代码但仍然失败。当调用使用它的函数时,我得到一个未处理的异常。当我注释掉nameSpell它有效。我注释掉了engSpell和未注释的nameSpell,它失败了。然后我检查以确保它调用的文件是正确的,它们是。它们仍然处于与它完成所有工作时相同的位置。我卸载了NHunspell并重新安装了它。没有。它甚至不能在我之前做过的简单测试中工作。

Everything was going great and this did work, but then it stopped working.

Public engSpell As New NHunspell.Hunspell("en_us.aff", "en_us.dic")
Public nameSpell As New NHunspell.Hunspell("en_USNames.aff", "en_USNames.dic")

I downloaded the Names dictionary and it worked just fine in the simple setup. I then added the code needed to have it function when I wanted it to. It failed.


Any ideas?

What I have tried:

I removed all code I added and it still fails. I get an unhandled exception when the function that uses it is called. When I comment out the nameSpell it works. I comment out the engSpell and uncommented nameSpell and it fails. I then checked to make sure the files it calls are correct and they are. They are still in the same places as it was when it all did work. I uninstalled NHunspell and reinstalled it. Nothing. It does not even work in my simple test that I did where it did before.

推荐答案

没关系,我使用了我的代码备份并替换了它。失去了6个小时的工作但现在一切正常。至少它在我的脑海中仍然是新鲜的,并且没有花费很长时间来重写。
Never mind, I resorted to a backup of my code and replaced it. Lost 6 hours of work but everything is working now. At least it was still fresh in my mind and did not take as long to rewrite.


这篇关于Nhunspell启动它的问题。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆