Windows视频聊天相关问题 [英] Windows video chat related questions

查看:67
本文介绍了Windows视频聊天相关问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我用c#创建了一个视频聊天系统。

现在出现问题,就是在两台计算机之间进行通信时,一台计算机就会停止聊天,然后在其他计算机上发生应用程序错误。

请你帮帮我。

hi friends,
I have created a video chat system in c#.
Now a problem is there,that is While communicating between two computers,when one computer will stop the chat,then application error is happen in other computer.
will you please help me in this.

推荐答案

首先,尝试在问题发生之前捕获所有异常行为。使用 System.Diagnostics.EventLog 将所有步骤记录到系统甚至日志中。特别注意记录重要事件,例如连接,当前连接数,创建新线程(其中一个谬误是创建无法控制的线程数)等等。



捕获每个线程中的所有异常并对其进行完全转储,并将其放入系统事件日志中。按照我对线程和异常处理的指示(其中许多与UI有关,所以忽略这些):

如何制作一个在滚动条到达底部时停止的循环 [ ^ ],

当我运行一个应用程序时,会遇到如何处理这个异常的问题? [ ^ ]。



使用 EventLog 的一些示例代码:

如何创建文件夹下的事件日志 [ ^ ],

MsBuild OutPut到Windows应用程序中的TextBox [ ^ ] [END]编辑]。



收集结果并尝试解决问题,如果你还不知道如何,可以提出更多问题。



-SA
First, try to capture all unusual behavior just before the problem occurs. Log all step onto the system even log using System.Diagnostics.EventLog. Pay special attention for logging important events such as connection, current number of connections, creation of new thread (one of the fallacies is creating uncontrollable number of threads), etc.

Catch all exceptions in each thread and make a full dump of it, put to system event log. Follow my directions on threads and exception processing (many of them are related to UI, so ignore those):
How do i make a loop that will stop when a scrollbar reaches the bottom[^],
When i run an application an exception is caught how to handle this?[^].

Some sample code for using EventLog:
How to create event log under a folder[^],
MsBuild OutPut to the TextBox on the fly in Windows Application[^] [END EDIT].

Collect results and try to fix the problem, ask more questions if you still don't know how.

—SA


这篇关于Windows视频聊天相关问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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