Click here to Skip to main content
15,890,415 members
Home / Discussions / C#
   

C#

 
QuestionC# Code To Start A Skype Call Pin
Kevin Marois11-Jan-10 12:28
professionalKevin Marois11-Jan-10 12:28 
AnswerRe: C# Code To Start A Skype Call Pin
Giorgi Dalakishvili11-Jan-10 19:17
mentorGiorgi Dalakishvili11-Jan-10 19:17 
QuestionHow this below code works Pin
indian14311-Jan-10 12:23
indian14311-Jan-10 12:23 
AnswerRe: How this below code works Pin
Richard MacCutchan11-Jan-10 12:52
mveRichard MacCutchan11-Jan-10 12:52 
GeneralRe: How this below code works Pin
indian14311-Jan-10 13:40
indian14311-Jan-10 13:40 
GeneralRe: How this below code works Pin
DaveyM6911-Jan-10 14:11
professionalDaveyM6911-Jan-10 14:11 
GeneralRe: How this below code works Pin
indian14311-Jan-10 14:27
indian14311-Jan-10 14:27 
QuestionBoolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 10:14
aespielberg11-Jan-10 10:14 
Hey,

I'm working on a C# project where I'm using a boolean flag to determine if I need to recompute a value, but when I get to evaluating the boolean flag (in an if statement), if it's false, it will just flip the value of the flag to true, and enter the if block anyway. For clarification:

if (currAreaValid)
    {
        return area;
    }


that's it. That's all the code. currAreaValid is false when it reaches the if statement, then just turns to true, and my method returns area. Now, it gets a little nuttier. If I hardcode "false" in the if statement, instead of currAreaValid, the value of currAreaValid still flips after the if block. I don't know why. I've tried cleaning and rebuilding the solution, but that didn't help. Has anyone seen a problem like this before? The only place I set the value of currAreaValid to true is in the same method that this if block is in, but at the very end of the method, which is 2 lines after the if block.

I have no idea what's going on. Can anyone help?
AnswerRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 10:56
sitebuilderLuc Pattyn11-Jan-10 10:56 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 11:08
aespielberg11-Jan-10 11:08 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 11:24
sitebuilderLuc Pattyn11-Jan-10 11:24 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 11:41
aespielberg11-Jan-10 11:41 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 12:06
sitebuilderLuc Pattyn11-Jan-10 12:06 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 12:23
aespielberg11-Jan-10 12:23 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 13:08
sitebuilderLuc Pattyn11-Jan-10 13:08 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 13:24
aespielberg11-Jan-10 13:24 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
aespielberg11-Jan-10 13:34
aespielberg11-Jan-10 13:34 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Luc Pattyn11-Jan-10 13:50
sitebuilderLuc Pattyn11-Jan-10 13:50 
GeneralRe: Boolean value changes without being modified, don't know why. Pin
Daniel Grunwald12-Jan-10 6:20
Daniel Grunwald12-Jan-10 6:20 
QuestionHow do I set the "Apply onto" option in NTFS file security rights using c#? Pin
arnold_w11-Jan-10 9:12
arnold_w11-Jan-10 9:12 
AnswerRe: How do I set the "Apply onto" option in NTFS file security rights using c#? [modified] Pin
arnold_w12-Jan-10 2:52
arnold_w12-Jan-10 2:52 
GeneralRe: How do I set the "Apply onto" option in NTFS file security rights using c#? Pin
batrado_®8-Feb-10 1:42
batrado_®8-Feb-10 1:42 
QuestionSend video capture over LAN Pin
shutupsquare11-Jan-10 8:58
shutupsquare11-Jan-10 8:58 
AnswerRe: Send video capture over LAN Pin
Alex Manolescu11-Jan-10 9:49
Alex Manolescu11-Jan-10 9:49 
QuestionFinding * characters in a string Pin
sleepyman11-Jan-10 8:52
sleepyman11-Jan-10 8:52 

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.