Click here to Skip to main content
15,909,652 members
Home / Discussions / C#
   

C#

 
GeneralRe: build order of projects Pin
Marc Clifton10-Feb-04 8:41
mvaMarc Clifton10-Feb-04 8:41 
QuestionUpdating a windows datagrid? Pin
Anonymous10-Feb-04 7:27
Anonymous10-Feb-04 7:27 
AnswerRe: Updating a windows datagrid? Pin
Mazdak10-Feb-04 9:37
Mazdak10-Feb-04 9:37 
GeneralRe: Updating a windows datagrid? Pin
MrJJKoolJ10-Feb-04 13:13
MrJJKoolJ10-Feb-04 13:13 
GeneralRe: Updating a windows datagrid? Pin
Mazdak10-Feb-04 20:00
Mazdak10-Feb-04 20:00 
GeneralRe: Updating a windows datagrid? Pin
MrJJKoolJ11-Feb-04 2:53
MrJJKoolJ11-Feb-04 2:53 
GeneralRe: Updating a windows datagrid? Pin
Mazdak11-Feb-04 4:44
Mazdak11-Feb-04 4:44 
GeneralRe: Updating a windows datagrid? Pin
MrJJKoolJ11-Feb-04 5:14
MrJJKoolJ11-Feb-04 5:14 
GeneralRe: Updating a windows datagrid? Pin
Mazdak11-Feb-04 5:23
Mazdak11-Feb-04 5:23 
GeneralRe: Updating a windows datagrid? Pin
MrJJKoolJ11-Feb-04 5:23
MrJJKoolJ11-Feb-04 5:23 
GeneralRe: Updating a windows datagrid? Pin
Mazdak11-Feb-04 5:33
Mazdak11-Feb-04 5:33 
GeneralFind Row in Table and Update DB Pin
MrJJKoolJ10-Feb-04 4:58
MrJJKoolJ10-Feb-04 4:58 
GeneralRe: Find Row in Table and Update DB Pin
Marc Clifton10-Feb-04 8:45
mvaMarc Clifton10-Feb-04 8:45 
GeneralOne more thing... Pin
Marc Clifton10-Feb-04 8:47
mvaMarc Clifton10-Feb-04 8:47 
GeneralRe: Find Row in Table and Update DB[EDITED] Pin
Mazdak10-Feb-04 9:49
Mazdak10-Feb-04 9:49 
GeneralRe: Find Row in Table and Update DB[EDITED] Pin
MrJJKoolJ10-Feb-04 13:04
MrJJKoolJ10-Feb-04 13:04 
General.NET and "industrial espionage" Pin
Palladino10-Feb-04 4:43
Palladino10-Feb-04 4:43 
GeneralRe: .NET and "industrial espionage" Pin
Marc Clifton10-Feb-04 6:33
mvaMarc Clifton10-Feb-04 6:33 
GeneralRe: .NET and "industrial espionage" Pin
Palladino10-Feb-04 8:06
Palladino10-Feb-04 8:06 
GeneralRe: .NET and "industrial espionage" Pin
Marc Clifton10-Feb-04 8:38
mvaMarc Clifton10-Feb-04 8:38 
GeneralRe: .NET and "industrial espionage" Pin
Palladino11-Feb-04 3:51
Palladino11-Feb-04 3:51 
GeneralRe: .NET and "industrial espionage" Pin
Palladino12-Feb-04 5:42
Palladino12-Feb-04 5:42 
GeneralTesting .NET remote connection Pin
naxos10-Feb-04 3:53
naxos10-Feb-04 3:53 
GeneralRe: Testing .NET remote connection Pin
Marc Clifton10-Feb-04 4:10
mvaMarc Clifton10-Feb-04 4:10 
GeneralCannot abort thread Pin
Mertli Ozgur Nevres10-Feb-04 3:38
Mertli Ozgur Nevres10-Feb-04 3:38 
Hi all,

I wrote a multi-thread application using sockets. But when i attempt to stop a thread, the thread is falling into "AbortRequested" state but never being aborted. Can anyone help me?
My code is below:

if ( this.m_ReceiveThread.IsAlive )
MessageBox.Show( "alive" );
MessageBox.Show( "State: " + this.m_ReceiveThread.ThreadState.ToString() );

if ( this.m_ReceiveThread != null )
{
for ( int i = 0; i <= 10; i++ )
{
try
{
this.m_ReceiveThread.Abort();
this.m_ReceiveThread.Join( 100 );

/*
!!!!!! it always says current state is AbortRequested !!!!!!
*/
MessageBox.Show( "m_ReceiveThread trying to abort. - " + i.ToString()
+ "\nCurrentState: " + this.m_ReceiveThead.ThreadState.ToString() );
}//End of try.
catch
{
}//End of catch.

if ( this.m_ReceiveThread.ThreadState == ThreadState.Aborted
|| this.m_ReceiveThread.ThreadState == ThreadState.Stopped )
{
MessageBox.Show( "m_ReceiveThread aborted." );
break;
}//End of if ( this.m_ReceiveThread.ThreadState == ThreadState.Aborted ).
}//End of for( int i = 0; i <= 10; i++ ).
}// End of if ( this.m_ReceiveThread != null ).

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.