Title Back Colour Keyoti Title Line Title Curve
Blue Box Top

NullReferenceException Thrown in GetAllSynonymns - Thesaurus Desktop .NET - Forum

Welcome Guest Search | Active Topics | Log In | Register

Options
lenwhite
#1 Posted : Monday, July 2, 2007 8:03:25 PM
Rank: Member

Groups: Registered

Joined: 9/13/2006
Posts: 52
Any idea why a NullReferenceException would be thrown with GetAllSynonyms("correct")?
Jim
#2 Posted : Monday, July 2, 2007 8:09:19 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


lenwhite
#3 Posted : Monday, July 2, 2007 8:26:16 PM
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
Jim
#4 Posted : Wednesday, July 4, 2007 1:57:04 AM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Jim
#5 Posted : Thursday, July 5, 2007 6:43:48 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


lenwhite
#6 Posted : Saturday, August 18, 2007 9:18:37 PM
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?
Jim
#7 Posted : Monday, August 20, 2007 2:45:11 PM
Rank: Advanced Member

Groups: Administrators, Registered

Joined: 8/13/2004
Posts: 2,667
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!


Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.




About | Contact | Site Map | Privacy Policy

Copyright © 2002- Keyoti Inc.