Delphi XE2 datasnap 回调示例
我正在尝试创建一个如何使用回调交换对象的小示例,但我遇到了一些问题。
- 当服务器创建并广播对象时,一些客户端回调连接会随时间随机关闭(有时在服务器发送大约 100,000 个对象后,有时在 100 个甚至更少的对象后)。
- 当客户端调用服务器方法来广播对象时,经常会发生客户端与服务器的连接关闭的情况。 所有这些都阻止我将当前项目转换为真正的客户端服务器项目。 这是我的源代码,包括服务器和客户端的可执行文件: DataSnapExample.rar
PS我已经尝试过Mat DeLong的监控演示,我放了一个定时器在服务器的主窗体上,调用广播消息菜单事件,结果是相同的 - 发送消息一段时间后,一些客户端断开连接。我担心发生这种情况是因为 Delphi XE2 Datasnap 中的客户端-服务器错误。这是演示:DataSnap XE2 - 统一连接监控示例组件
有人可以告诉我这是否是我的错吗? 谢谢...
I am trying to create a small example of how to exchange objects using calbacks, but I am experiencing some problems.
- When server creates and broadcasts objects, some clients callback connections are closed randomly with time (sometimes after server has sent like 100.000 objects, sometimes after 100 even less).
- When a client calls a server method to broadcasts an object, it happens offten that the client connection to the server is closed.
All this is stopping me from converting my current project to a real client server one.
Here is my source, including the executables for both server and client:
DataSnapExample.rar
P.S. I have tried Mat DeLong's Monitoring demo, I've put a ttimer on server's main form, that calls the broadcast message menu event, and result was same - after sending messages for a while, some clients are disconnected. I'm afraid this happens because of a client-server bug in Delphi XE2 Datasnap. Here is the demo: DataSnap XE2 - Unified Connection Monitoring Sample Component
Can someone tell me if it is my fault or not?
Thanks...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论