NDde 服务器在一段时间后停止接收 OnAdvise 回调 [英] NDde server stops getting OnAdvise callbacks after a while

查看:98
本文介绍了NDde 服务器在一段时间后停止接收 OnAdvise 回调的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 NDde (http://ndde.codeplex.com/) 库来设置一个通过 TCP 套接字接收实时数据并通过 DDE 协议公开数据的服务器.

I am using NDde (http://ndde.codeplex.com/) library to set up a server that receives real-time data through a TCP socket and exposes it through DDE protocol.

它当然运行良好,但在随机时间(2 到 20 分钟之间)后,它停止更新 DDE 客户端上的数据.

It certainly works well, but after a random time (between 2 and 20 minutes) it stops updating the data on DDE clients.

一旦它停止响应,我可以在日志中看到 TCP 数据按预期推送,并且我的 NDde 服务器正确调用了 Advise 方法.根本不会抛出任何异常.

Once it stops responding, I can see int the logs that the TCP data is pushed as expected, and my NDde server calls the Advise method properly. No exceptions are thrown at all.

问题似乎出在回调上,调试库源代码似乎不再调用ProcessCallback方法.

The problem seems to be in the callback, debugging the library source code seems that ProcessCallback method is not being called anymore.

我的系统设置是 Windows Server 2012 64 位

My system setup is a Windows Server 2012 64 bits

推荐答案

我遇到了同样的问题,找不到任何解决方案来解决它.但是,作为变通方法,我将监听更新事件,当它停止时,我将重新初始化 Client 对象,它应该会再次工作.

I got the same problem and can't find any solution to fix it. However, for a workaround, I will listen to the update event, and when it is stopped, I will re-initialize the Client object and it should work again.

不是最好的解决方案,但它解决了我的问题.任何对根有帮助的解决方案,仍然会非常感激.

Not a best solution but it resolves for my problem. Any solution that helps on the root one, will be still really appreciate.

这篇关于NDde 服务器在一段时间后停止接收 OnAdvise 回调的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆