Hi,
I've spent the last 8 hours struggling with this API. I have tried loads of different things that have been suggested across forums and posts and yet no-one seems to have the same errors as me. I have tried using NHunspell through NuGet and
the direct source code. Either way I still get the same result.
I am using the code below(similar to the code that is shown on your website).
I end up with this exception:
http://puu.sh/aEaRG/96173f1001.png
The stack trace of the exception is this:
Argument cannot be null. Parameter name: path1 System.IO.Path.Combine (System.String path1, System.String path2) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/Path.cs:138) NHunspell.MarshalHunspellDll.get_NativeDLLPath () NHunspell.MarshalHunspellDll.ReferenceNativeHunspellDll ()
No matter what I try the same exception keep's appearing. I am using Visual Studio 2013 and am working on a Unity3D project. If I could get some help or at least an idea of why this is going wrong that would be great!
Thanks
I've spent the last 8 hours struggling with this API. I have tried loads of different things that have been suggested across forums and posts and yet no-one seems to have the same errors as me. I have tried using NHunspell through NuGet and
the direct source code. Either way I still get the same result.
I am using the code below(similar to the code that is shown on your website).
using (Hunspell hunspell = new Hunspell("Assets/Dictionaries/en_GB-oed.aff", "Assets/Dictionaries/en_GB-oed.dic"))
{
bool correct = hunspell.Spell("Recommendation");
Debug.Log("Recommendation is spelled " + (correct ? "correct" : "not correct"));
}
I end up with this exception:
http://puu.sh/aEaRG/96173f1001.png
The stack trace of the exception is this:
Argument cannot be null. Parameter name: path1 System.IO.Path.Combine (System.String path1, System.String path2) (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.IO/Path.cs:138) NHunspell.MarshalHunspellDll.get_NativeDLLPath () NHunspell.MarshalHunspellDll.ReferenceNativeHunspellDll ()
No matter what I try the same exception keep's appearing. I am using Visual Studio 2013 and am working on a Unity3D project. If I could get some help or at least an idea of why this is going wrong that would be great!
Thanks