Hello,
 
It is hard to deduce anything based on this code excerpt,
especially for those who know nothing about C# (like me),
but what about resource maintaining?
Do you free Content every time and create another one or reuse it?
Or may be create new ones again and again?
What about closing 0mq sockets?
Could you provide any additional info about crash reason (error code, stacktrace or something)
for further clarification.
 
Thanks.
07.11.2011, 05:08, "lanre lawal" <[email protected]>:
Hi Guys,
    I have a very light weight application that uses the ZMQ library to receive messages from an address. What happens is every 10seconds, a new request is made to the server to process and receive messages. Now after this runs for some 20-30minutes the system where ZMQ connects to crashes and its thought that ZMQ is the cause of the crash. Here's my code below:

        byte[] zmq_buffer = new byte[1024];
        gpspos pos = new gpspos();
        gps_parser gp = new gps_parser();
        ZMQ.Context context = new ZMQ.Context(1);
        ZMQ.Socket socket = context.Socket(ZMQ.SocketType.DEALER);
        socket.Connect("tcp://remote_address");
        zmq_buffer = socket.Recv();
I was wondering if there was any optimization process necessary on the code or something. I'm using clrzmq for C#. Guys i need your advice. Thanks.

_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

--
Best regards,
Ilja Golshtein.
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to