Click here to Skip to main content
15,891,513 members
Home / Discussions / C#
   

C#

 
GeneralRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:35
Ankit Aneja30-Jan-07 18:35 
AnswerRe: clear all values from text boxes while logging out Pin
Christian Graus30-Jan-07 18:36
protectorChristian Graus30-Jan-07 18:36 
GeneralRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:45
Ankit Aneja30-Jan-07 18:45 
AnswerRe: clear all values from text boxes while logging out Pin
Martin#30-Jan-07 19:21
Martin#30-Jan-07 19:21 
Questionreplacement for Thread.Suspend(), Thread.Resume() ? Pin
michal.kreslik30-Jan-07 18:01
michal.kreslik30-Jan-07 18:01 
AnswerRe: replacement for Thread.Suspend(), Thread.Resume() ? Pin
Russell Jones31-Jan-07 0:44
Russell Jones31-Jan-07 0:44 
GeneralRe: replacement for Thread.Suspend(), Thread.Resume() ? Pin
michal.kreslik31-Jan-07 6:47
michal.kreslik31-Jan-07 6:47 
GeneralRe: replacement for Thread.Suspend(), Thread.Resume() ? Pin
Russell Jones31-Jan-07 21:04
Russell Jones31-Jan-07 21:04 
i think the aim of the changes to the resume and suspend methods was that code that executes outside a thread doesn't know what resources the thread is using.

If for instance there was a database transaction open in the thread that you are putting to sleep you could create chaos for all users of the application not just the specific instance that the thread is running in.

I think the general plan is to check for the state of a variable somewhere in your code

while(_running)<br />
{DoStuff();}<br />
else<br />
{<br />
  ReleaseExpensiveResources();<br />
 Thread.Sleep(Timeout.Infinite);<br />
}


This way the thread won't suspend immedeately but it will suspend cleanly when it releases.

Russ
QuestionHelp in developing EMail Client Pin
EEmaan30-Jan-07 17:45
EEmaan30-Jan-07 17:45 
QuestionHelp in Developing EMail Client Pin
EEmaan30-Jan-07 17:37
EEmaan30-Jan-07 17:37 
AnswerRe: Help in Developing EMail Client Pin
Mahernoz30-Jan-07 18:02
Mahernoz30-Jan-07 18:02 
GeneralRe: Help in Developing EMail Client Pin
EEmaan30-Jan-07 20:06
EEmaan30-Jan-07 20:06 
QuestionRegarding ContextSwitchDeadlock Exception Pin
kraj9930-Jan-07 17:30
kraj9930-Jan-07 17:30 
GeneralRe: Regarding ContextSwitchDeadlock Exception Pin
andre_swnpl30-Jan-07 18:48
andre_swnpl30-Jan-07 18:48 
QuestionInvalidActiveXSateException was unhandled- MSChart control 6.0 Pin
GunaChinna30-Jan-07 17:26
GunaChinna30-Jan-07 17:26 
AnswerRe: InvalidActiveXSateException was unhandled- MSChart control 6.0 Pin
GunaChinna8-Feb-07 19:46
GunaChinna8-Feb-07 19:46 
QuestionDatagrid [modified] Pin
md_refay30-Jan-07 17:17
md_refay30-Jan-07 17:17 
AnswerRe: Datagrid Pin
Christian Graus30-Jan-07 18:38
protectorChristian Graus30-Jan-07 18:38 
QuestionOffice 2003 Color Pin
god4k30-Jan-07 16:50
god4k30-Jan-07 16:50 
AnswerRe: Office 2003 Color Pin
Christian Graus30-Jan-07 18:38
protectorChristian Graus30-Jan-07 18:38 
QuestionComing to grips with culture Pin
Glen Harvy30-Jan-07 16:21
Glen Harvy30-Jan-07 16:21 
AnswerRe: Coming to grips with culture Pin
Christian Graus30-Jan-07 18:39
protectorChristian Graus30-Jan-07 18:39 
GeneralRe: Coming to grips with culture Pin
Glen Harvy30-Jan-07 19:16
Glen Harvy30-Jan-07 19:16 
GeneralRe: Coming to grips with culture Pin
Christian Graus30-Jan-07 22:07
protectorChristian Graus30-Jan-07 22:07 
GeneralRe: Coming to grips with culture Pin
Glen Harvy30-Jan-07 22:32
Glen Harvy30-Jan-07 22:32 

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.