|
Rank: Member
Groups: Registered
Joined: 9/13/2006 Posts: 52
|
Any idea why a NullReferenceException would be thrown with GetAllSynonyms("correct")?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
It sounds like archived link - although GetAllSynonyms is the work-around. Can you post the code? Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 9/13/2006 Posts: 52
|
There's not much to it. Below is the line of code it is generated on. I also included the function I call that gives me the thesaurus engine. My first thought was the parameter I am sending, but I tried it using various quoted strings and if failed consistently on "correct". It is also happening on "disillusionment" and "enlighten". This is out of perhaps 3000 words.
Dim arr As ArrayList = CADomain.Globals.Thesaurus.GetAllSynonyms(word.Phrase)
Public Shared Function Thesaurus() As Keyoti.Thesaurus.Model.IThesaurusEngine Static model As Keyoti.Thesaurus.Model.IThesaurusEngine If model Is Nothing Then model = New Keyoti.Thesaurus.Model.ThesaurusEngine End If Return model End Function
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Thanks, looks like a bug, I'll have a patched build for you shortly. Sorry about that, Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
Len, can you use this build please http://keyoti.com/Upload...?fileID=118&code=891431 it fixes the issue. Jim -your feedback is helpful to other users, thank you!
|
|
Rank: Member
Groups: Registered
Joined: 9/13/2006 Posts: 52
|
Thanks Jim. Can I just copy the The Thesaurus.Model.dll file over the old one, or do I need to do more?
|
|
Rank: Advanced Member
Groups: Administrators, Registered
Joined: 8/13/2004 Posts: 2,669 Location: Canada
|
You'll need to replace all the DLLs you're referencing, so model and windows if referencing both, or just model. Best, Jim -your feedback is helpful to other users, thank you!
|
|