Click here to Skip to main content
15,885,933 members
Home / Discussions / C#
   

C#

 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Luc Pattyn20-May-12 13:58
sitebuilderLuc Pattyn20-May-12 13:58 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Emanuel vargas20-May-12 15:43
Emanuel vargas20-May-12 15:43 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Luc Pattyn20-May-12 16:11
sitebuilderLuc Pattyn20-May-12 16:11 
AnswerRe: Apply gradient in control DataGridView(c#) Pin
Emanuel vargas21-May-12 5:20
Emanuel vargas21-May-12 5:20 
GeneralFuzzy C# code Pin
Cbadeg20-May-12 10:32
Cbadeg20-May-12 10:32 
GeneralRe: Fuzzy C# code Pin
Dave Kreskowiak20-May-12 11:39
mveDave Kreskowiak20-May-12 11:39 
GeneralRe: Fuzzy C# code Pin
BillWoodruff20-May-12 15:26
professionalBillWoodruff20-May-12 15:26 
QuestionHow to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 7:29
ShadowUz20-May-12 7:29 
I have a client application, which uses a unmanaged dll for communicating with a server.

All network-related operations are perormed inside the unmanaged dll.
After a number of operations with the server, the client is running out of TCP ports.
If we check the state of netwotk using 'netstat -an', we get the following result:
C#
...
TCP    192.168.11.55:56048    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56049    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56050    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56051    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56052    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56053    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56054    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56055    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56056    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56057    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56058    192.168.10.27:5000     FIN_WAIT_2
TCP    192.168.11.55:56059    192.168.10.28:5000     FIN_WAIT_2
TCP    192.168.11.55:56060    192.168.10.27:5000     FIN_WAIT_2
...


The ports are released only after the client is closed.

If I run the VS project in Debug Mode, it never runs out the ports.
But, while running in Release mode, it is happening.

How to release or kill those ports which are in FIN_WAIT_2 state?
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 7:32
professionalRavi Bhavnani20-May-12 7:32 
GeneralRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
ShadowUz20-May-12 7:43
ShadowUz20-May-12 7:43 
AnswerRe: How to close (kill, release?) a socket, which is in FIN_WAIT_2 state? Pin
Ravi Bhavnani20-May-12 7:48
professionalRavi Bhavnani20-May-12 7:48 
QuestionHow to refresh or update DataGrid Cell Value ... Pin
nassimnastaran18-May-12 20:25
nassimnastaran18-May-12 20:25 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
OriginalGriff18-May-12 20:51
mveOriginalGriff18-May-12 20:51 
AnswerRe: How to refresh or update DataGrid Cell Value ... Pin
Alan N19-May-12 3:06
Alan N19-May-12 3:06 
GeneralRe: How to refresh or update DataGrid Cell Value ... Pin
nassimnastaran19-May-12 9:01
nassimnastaran19-May-12 9:01 
QuestionDoes This Only Happen To Me? Pin
Roger Wright18-May-12 18:53
professionalRoger Wright18-May-12 18:53 
AnswerRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 20:58
mveOriginalGriff18-May-12 20:58 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon18-May-12 22:42
mvePete O'Hanlon18-May-12 22:42 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff18-May-12 22:47
mveOriginalGriff18-May-12 22:47 
GeneralRe: Does This Only Happen To Me? Pin
Pete O'Hanlon19-May-12 2:10
mvePete O'Hanlon19-May-12 2:10 
GeneralRe: Does This Only Happen To Me? Pin
OriginalGriff19-May-12 2:20
mveOriginalGriff19-May-12 2:20 
GeneralRe: Does This Only Happen To Me? Pin
BillW3319-May-12 7:05
professionalBillW3319-May-12 7:05 
QuestionA Layout Question, And A Bit More Pin
Roger Wright17-May-12 19:47
professionalRoger Wright17-May-12 19:47 
AnswerRe: A Layout Question, And A Bit More Pin
Pete O'Hanlon17-May-12 23:19
mvePete O'Hanlon17-May-12 23:19 
GeneralRe: A Layout Question, And A Bit More Pin
Roger Wright18-May-12 11:35
professionalRoger Wright18-May-12 11:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.