Comments (14)
Even a minimal test case like the one below is throwing the same error.
using System;
using ZeroMQ;
namespace TestCase
{
class Program
{
static void Main(string[] args)
{
using (var context = new ZContext())
{
}
}
}
}
from clrzmq4.
Please set the files in i386
and amd64
to "copy if newer" (.dll
for Windows and .so
for Linux).
from clrzmq4.
Thanks, it solved the issue.
I didn't expect that :) I guess I'm used to some NuGet packages that automatically copies the native DLLs to the build folder.
from clrzmq4.
Yeah, sadly isn't that for native dlls... I'll have to make them embedded resources, however that will give some weight to the binary...
from clrzmq4.
The examples are cool right? I like Espresso...:
01410000000000000000
01420000000000000000
B 29804bd50000000000
B 69abb4530000000000
A e13169fe0000000000
B 48fe8c100000000000
B 8d64be370000000000
I: subscriber counted 5
00410000000000000000
00420000000000000000
from clrzmq4.
Yeah, the examples are nice 👍 I've just started learning ZeroMQ, and I prefer this lib, over the pure CLR one, since it's much closer to the C API.
Anyway... IIRC the approach used by the SQL Server compact NuGet package is that, it executes a powershell script to automatically copy the native binaries to the build folder. They're not embedded resources, I think.
from clrzmq4.
Thanks 👍
I'll have to look into the SQL Server compact package!
from clrzmq4.
Thanks, this issue is solved by the above answer: "Please set the files in i386 and amd64 to "copy if newer" (.dll for Windows and .so for Linux)."
from clrzmq4.
Thanks, this issue is solved by the above answer: "Please set the files in i386 and amd64 to "copy if newer" (.dll for Windows and .so for Linux)." +1
from clrzmq4.
🍏 💚 🆒 ♻️ 👍
from clrzmq4.
This is a very silly problem. The answer is perfect. It solved my problem.
Thank you so much! 👍
from clrzmq4.
I have the same problem..... What do you mean with "Please set the files in i386 and amd64 to "copy if newer" (.dll for Windows and .so for Linux)."? I do not know how to proceed.
Thanks,
from clrzmq4.
I'm sorry, I don't know how to say this otherwise, you should try harder.
"Please copy the folders i386 and amd64 into the project's output directory."
You should end up using a directory structure like this one:
\MyProject
\bin
\Debug
\amd64
\libzmq.dll
\libzmq.so
\i386
\libzmq.dll
\libzmq.so
\MyProject.exe
\ZeroMQ.dll
\amd64
\libzmq.dll
\libzmq.so
\i386
\libzmq.dll
\libzmq.so
\AssemblyInfo.cs
\Program.cs
from clrzmq4.
So, I know that this is an old question, but what could be the cause and possibly fix when the inner exception is not "UnmanagedLibrary" but a NullReferenceException?
I'm trying to create a ZContext in the OnStart() method of a windows service and get the TypeInitializationException when trying to call new ZContext().
I aldready copy the amd64 and i386 folders to the output folder and I have ZeroMQ installed using NuGet.
If I create the context in a test and pass it to the class that needs to use it, it works without any complications.
Again sorry for reopening the issue, but I really am at my wits end.
from clrzmq4.
Related Issues (20)
- News on ZeroMQ/clrzmq4 - New Initial Release HOT 4
- NuGet v4.1.0.28 does not include i386 and amd64 libs HOT 10
- latest v4.1.0.30 not include libsodium.dll while create instance HOT 1
- How do you see the times for request/reply messages processed?
- Fails to create ZContext under .net Core 3.0 HOT 7
- Heartbeat incompatibility with jeromq using curve
- Shared library issues with DotNet Core 2.1 under Linux HOT 1
- Nuget package with version that supports netstandard2.0 HOT 4
- Cannot get Ironhouse ZGuideExample to work
- Crash in ZSocket.SendMessage()
- Windows KERNELBASE exception and growing delay HOT 1
- Subscriptions not delivered to late publisher
- Missing Server/Client sockets HOT 1
- Non-conformant nuget package folder layout
- Please, make release with libzmq v4.3.4 included HOT 2
- Better signature to send string from ROUTER to DEALER
- NullReferenceException from ZeroMQ.ZPollItems.PollIn in ROUTER<-->DEALER communication
- Bug in public virtual bool Send(IEnumerable<ZFrame> frames, ZSocketFlags flags, out ZError error) HOT 2
- Correct handling of timeout during polling
- Receive event when a subscriber is connected
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clrzmq4.