[sword-devel] C# runtime problem
Greg Hellings
greg.hellings at gmail.com
Wed Aug 27 19:10:30 MST 2014
I'm fairly sure that org_crosswire_sword_SWMgr_new() is a specific thing to
the C# bindings. The appropriate namespace in the C++ library is
"sword::SWMgr::new". The org.crosswire part is left out of the C++
namespacing. Perhaps there is a shim library that bridges the gap between
the C++ lib and the C# bindings that's missing?
--Greg
On Wed, Aug 27, 2014 at 9:07 PM, Jon Behrens <jbb at crimsonthread.com> wrote:
> Hello again
>
> I though finding 'libsword.so' would fix the problem, but not so.
> Compiling and running
> the C# LookupExample in the distribution package still gives the following
> error:
>
> Unhandled Exception:
> System.EntryPointNotFoundException: org_crosswire_sword_SWMgr_new
> at (wrapper managed-to-native)
> Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()
> at Sword.Manager..ctor () [0x00008] in
> /raid/swordProject/bindings/csharp/Manager.cs:26
> at Sword.Tests.LookupExample.Lookup (System.String modName,
> System.String key) [0x00001] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
> at Sword.Tests.LookupExample.Main (System.String[] args) [0x00020] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
> [ERROR] FATAL UNHANDLED EXCEPTION: System.EntryPointNotFoundException:
> org_crosswire_sword_SWMgr_new
> at (wrapper managed-to-native)
> Sword.NativeMethods:org_crosswire_sword_SWMgr_new ()
> at Sword.Manager..ctor () [0x00008] in
> /raid/swordProject/bindings/csharp/Manager.cs:26
> at Sword.Tests.LookupExample.Lookup (System.String modName,
> System.String key) [0x00001] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:33
> at Sword.Tests.LookupExample.Main (System.String[] args) [0x00020] in
> /raid/swordProject/bindings/csharp/examples/LookupExample.cs:27
>
> Since I assume the function 'org_crosswire_sword_SWMgr_new()' does in
> fact exist in libsword.so, the only thing I can imagine is that there's a
> path variable not set somewhere.
>
> As I mentioned before, I'm a real newby to Linux, so this may be something
> obvious to
> someone with more experience.
>
> Thanks for any help
>
> Jon
>
> _______________________________________________
> sword-devel mailing list: sword-devel at crosswire.org
> http://www.crosswire.org/mailman/listinfo/sword-devel
> Instructions to unsubscribe/change your settings at above page
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/sword-devel/attachments/20140827/3c7afcb1/attachment.html>
More information about the sword-devel
mailing list