CoreyKaylor / Lightning.NET

.NET library for LMDB key-value store
Other
399 stars 82 forks source link

lmdb.dll issues #87

Closed chriswithpants closed 7 years ago

chriswithpants commented 7 years ago

I'm attempting to get a simple console application running. I've copied some sample code, installed the nuget package, and when running get an exception saying that it can't find lmdb.dll.

I have tried compiling both x86 and x64. No difference.

Manually copying lmdb.dll into the Debug directory gives a BadImageFormat exception when it's accessed.

Sample Visual Studio project attached. Same issue when trying to run in LINQPad. LightningTest.zip

Thoughts?

nblumhardt commented 7 years ago

Heya @chriswithpants - there's a fully-working app in this repo: https://github.com/datalust/seq-forwarder - may be useful to work backwards from. HTH! 👍

chriswithpants commented 7 years ago

Cheers @nblumhardt I'll take a look.

chriswithpants commented 7 years ago

I've tested with the dll from @nblumhardt's project and it works fine.

And now, after a good night's sleep, the x64 dll included in the nuget package is working fine. Let's put this one down to tired eyes. Thanks all.