Click here to Skip to main content
15,903,175 members
Home / Discussions / C#
   

C#

 
QuestionChange the process priority. Pin
JollyMansArt17-Aug-09 17:24
JollyMansArt17-Aug-09 17:24 
AnswerRe: Change the process priority. Pin
JollyMansArt17-Aug-09 17:36
JollyMansArt17-Aug-09 17:36 
GeneralRe: Change the process priority. Pin
Christian Graus17-Aug-09 17:44
protectorChristian Graus17-Aug-09 17:44 
GeneralRe: Change the process priority. Pin
Dave Kreskowiak17-Aug-09 18:17
mveDave Kreskowiak17-Aug-09 18:17 
AnswerRe: Change the process priority. Pin
PIEBALDconsult17-Aug-09 18:34
mvePIEBALDconsult17-Aug-09 18:34 
GeneralRe: Change the process priority. Pin
JollyMansArt17-Aug-09 19:36
JollyMansArt17-Aug-09 19:36 
QuestionC# .NET - Export total windows form to word Pin
rizchi17-Aug-09 17:17
rizchi17-Aug-09 17:17 
AnswerRe: C# .NET - Export total windows form to word Pin
Christian Graus17-Aug-09 17:25
protectorChristian Graus17-Aug-09 17:25 
GeneralRe: C# .NET - Export total windows form to word [modified] Pin
Hristo-Bojilov17-Aug-09 20:59
Hristo-Bojilov17-Aug-09 20:59 
QuestionHow to access the label control on a user control Pin
codeslingerCA17-Aug-09 16:04
codeslingerCA17-Aug-09 16:04 
AnswerRe: How to access the label control on a user control Pin
Christian Graus17-Aug-09 16:23
protectorChristian Graus17-Aug-09 16:23 
Questionincrementing to the next day and next year Pin
lopatko17-Aug-09 15:56
lopatko17-Aug-09 15:56 
AnswerRe: incrementing to the next day and next year Pin
Christian Graus17-Aug-09 16:26
protectorChristian Graus17-Aug-09 16:26 
GeneralRe: incrementing to the next day and next year Pin
Thomas Krojer17-Aug-09 20:23
Thomas Krojer17-Aug-09 20:23 
QuestionI am tring something different what is wrong??? Pin
JollyMansArt17-Aug-09 13:40
JollyMansArt17-Aug-09 13:40 
AnswerRe: I am tring something different what is wrong??? Pin
Henry Minute17-Aug-09 13:47
Henry Minute17-Aug-09 13:47 
AnswerRe: I am tring something different what is wrong??? Pin
Christian Graus17-Aug-09 13:57
protectorChristian Graus17-Aug-09 13:57 
QuestionNullable Type Pin
Mycroft Holmes17-Aug-09 13:20
professionalMycroft Holmes17-Aug-09 13:20 
AnswerRe: Nullable Type Pin
Christian Graus17-Aug-09 13:39
protectorChristian Graus17-Aug-09 13:39 
AnswerRe: Nullable Type Pin
Henry Minute17-Aug-09 13:59
Henry Minute17-Aug-09 13:59 
GeneralRe: Nullable Type Pin
Mycroft Holmes17-Aug-09 14:12
professionalMycroft Holmes17-Aug-09 14:12 
QuestionPointless locking? Pin
MarkLTX17-Aug-09 11:38
MarkLTX17-Aug-09 11:38 
AnswerRe: Pointless locking? Pin
Christian Graus17-Aug-09 11:49
protectorChristian Graus17-Aug-09 11:49 
AnswerRe: Pointless locking? Pin
PIEBALDconsult17-Aug-09 13:17
mvePIEBALDconsult17-Aug-09 13:17 
AnswerRe: Pointless locking? Pin
cmk17-Aug-09 18:34
cmk17-Aug-09 18:34 
Given something like:
class c {
  _locker;
  _memberString;
  f() {
    ...
    lock(_locker) {
      return _memberString;
    }
  }
}
caller() {
  c v;
  ...
  s = v.f();
}


In s = v.f() _memberString will need to be copied to a temp variable, or directly to s, before f returns. By locking the return you ensure that _memberString isn't modified in mid-copy ... or at least that's the way I would expect it to work in lieu of documentation to the contrary.

...cmk

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.
- John Carmack

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.