Click here to Skip to main content
15,917,702 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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.
Posted
Updated 13-Mar-11 23:46pm
v2
Comments
RaviRanjanKr 14-Mar-11 5:48am    
What's Exception it Generate? Without seeing your Code its very hard to day what is going wrong. we need some more information :)
Rajeshram009 18-Mar-11 22:45pm    
ok i will........
OriginalGriff 14-Mar-11 5:49am    
Without some idea of your code, no we won't.
Rajeshram009 18-Mar-11 22:46pm    
I will send the code........thnks

1 solution

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[^],
[EDIT] 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
 
Share this answer
 
v3
Comments
Espen Harlinn 15-Mar-11 11:41am    
Good advice, and the links provides enough to get OP started - my 5
Sergey Alexandrovich Kryukov 15-Mar-11 12:55pm    
This is just "report first, solve the problem later".
Thank you.
--SA
Rajeshram009 18-Mar-11 22:50pm    
thnksssss
Rajeshram009 18-Mar-11 22:50pm    
thankxxxs man am going through it........
Sergey Alexandrovich Kryukov 19-Mar-11 1:55am    
You're welcome, hope it can help.
Thanks for accepting my Answer,
Good luck,
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900