Click here to Skip to main content
16,005,473 members
Home / Discussions / C#
   

C#

 
AnswerRe: Calling external application with arbitary input parameters [modified] Pin
Martin#31-Jan-07 22:48
Martin#31-Jan-07 22:48 
Questionclear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:07
Ankit Aneja30-Jan-07 18:07 
AnswerRe: clear all values from text boxes while logging out Pin
Ankit Aneja30-Jan-07 18:10
Ankit Aneja30-Jan-07 18:10 
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 
Hello,

I am getting a C# compiler warning for using Thread.Suspend() and Thread.Resume() methods:

Warning	6	'System.Threading.Thread.Suspend()' is obsolete:
'Thread.Suspend has been deprecated.  Please use other classes in System.Threading,
such as Monitor, Mutex, Event, and Semaphore, to synchronize Threads or protect
resources.  http://go.microsoft.com/fwlink/?linkid=14202'


I'm implementing these thread methods in a safe environment, when only a single worker thread accesses the resources. This worker thread is performing a lenghty calculation so I wanted to have an option to suspend/resume this CPU intensive and lenghty calculation.

Is there any other simple way to accomplish this task? Monitor, Mutex, Event nor Semaphore don't seem to be an effective replacement for Suspend() and Resume().

Thanks much,
Michal Kreslik
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 
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 

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.