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

C#

 
QuestionTriangles count in Graph Pin
Member 1177893019-Nov-22 15:20
Member 1177893019-Nov-22 15:20 
AnswerRe: Triangles count in Graph Pin
Dave Kreskowiak19-Nov-22 18:03
mveDave Kreskowiak19-Nov-22 18:03 
AnswerRe: Triangles count in Graph Pin
OriginalGriff19-Nov-22 20:20
mveOriginalGriff19-Nov-22 20:20 
AnswerRe: Triangles count in Graph Pin
Gerry Schmitz20-Nov-22 5:13
mveGerry Schmitz20-Nov-22 5:13 
QuestionDynamic table insert issue with dates Pin
Vijay Bhaskar Oct202217-Nov-22 6:32
Vijay Bhaskar Oct202217-Nov-22 6:32 
AnswerRe: Dynamic table insert issue with dates Pin
Slacker00717-Nov-22 6:46
professionalSlacker00717-Nov-22 6:46 
AnswerRe: Dynamic table insert issue with dates Pin
OriginalGriff17-Nov-22 8:40
mveOriginalGriff17-Nov-22 8:40 
AnswerRe: Dynamic table insert issue with dates Pin
Richard Deeming17-Nov-22 21:37
mveRichard Deeming17-Nov-22 21:37 
QuestionMicrosoft.Practices.Composite.Presentation.Events Pin
Kevin Marois16-Nov-22 12:14
professionalKevin Marois16-Nov-22 12:14 
AnswerRe: Microsoft.Practices.Composite.Presentation.Events Pin
Dave Kreskowiak16-Nov-22 12:49
mveDave Kreskowiak16-Nov-22 12:49 
AnswerRe: Microsoft.Practices.Composite.Presentation.Events Pin
Richard Deeming16-Nov-22 21:31
mveRichard Deeming16-Nov-22 21:31 
QuestionI'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Rakos4613-Nov-22 10:46
Rakos4613-Nov-22 10:46 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Mycroft Holmes13-Nov-22 11:06
professionalMycroft Holmes13-Nov-22 11:06 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
OriginalGriff13-Nov-22 18:53
mveOriginalGriff13-Nov-22 18:53 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Calin Negru14-Nov-22 3:28
Calin Negru14-Nov-22 3:28 
AnswerRe: I'm getting error code CS1001. And I'm not sure how to diagnose the problem. Pin
Victor Nijegorodov14-Nov-22 3:40
Victor Nijegorodov14-Nov-22 3:40 
QuestionMy Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil9-Nov-22 17:45
Radheya Patil9-Nov-22 17:45 
AnswerRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
OriginalGriff9-Nov-22 18:48
mveOriginalGriff9-Nov-22 18:48 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil10-Nov-22 1:05
Radheya Patil10-Nov-22 1:05 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Richard Deeming10-Nov-22 1:24
mveRichard Deeming10-Nov-22 1:24 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil10-Nov-22 1:42
Radheya Patil10-Nov-22 1:42 
The below code runs in an infinite loop in console application. Message box is shown and user press OK everytime it is shown. At last iteration of foreach loop when user press ok it should continue to check next if condition in an infinite loop, mean while it does not. And when i pause my code to check where the control of the code is, it shows me control at Message.ShowBox line and even after pressing step over it still remains at that place.


Just for info.. it is developed in .net Compact 3.5 in visual studio 2008

for(;;)
{
if (CheckBitData(5, 965) == true)                                   //Checking Read Request from File to Mac
                {
                    string[] TypeofProcess = { "P", "V", "F", "C", "Q" };
                    int i = 0;
                    foreach (string p in TypeofProcess)
                    {
                        string FileToFetch1 = getFileName(p);
                        if (File.Exists(FileToFetch1))
                        {
                            using (StreamReader r = File.OpenText(FileToFetch1))
                            {
                                ReadAndDumpToCNC(r, 36000+i, 31000+i, 41000+i);
                            }
                        }
                        else
                        {
                            MessageBox.Show(p + "File Not Found...!!!!");
                        }
                        i = i + 1000;
                    }

                    MakeZeroPMC(5, 965);
                }

                if (CheckBitData(5, 967) == true)                                   // Data File Generation using History Data
                {
                    ManipulateArray(31000, 31999, 41000, 36000, 11075, 11076);      //(readStart,readEnd,wrStart1,wrStart2,MaxVar,MinVar)
                    MakeMasterData("Power", "Max", 41000, 41999);
                    MakeMasterData("Power", "Min", 36000, 36999);
                    ManipulateArray(32000, 32999, 42000, 37000, 11077, 11078);
                    MakeMasterData("Voltage", "Max", 42000, 42999);
                    MakeMasterData("Voltage", "Min", 37000, 37999);
                    ManipulateArray(33000, 33999, 43000, 38000, 11079, 11080);
                    MakeMasterData("Freq", "Max", 43000, 43999);
                    MakeMasterData("Freq", "Min", 38000, 38999);
                    ManipulateArray(34000, 34999, 44000, 39000, 11081, 11082);
                    MakeMasterData("Curr", "Max", 44000, 44999);
                    MakeMasterData("Curr", "Min", 39000, 39999);
                    ManipulateArray(35000, 35999, 45000, 40000, 11083, 11084);
                    MakeMasterData("Quench", "Max", 45000, 45999);
                    MakeMasterData("Quench", "Min", 40000, 40999);
                    MakeZeroPMC(5, 967);
                }

                if (CheckBitData(5, 968) == true)                                   
                {
                    DumpMasterDataG1V();
                    MakeZeroPMC(5, 968);
                }
                if (CheckBitData(5, 969) == true)                                   
                {
                    DumpMasterDataG1Q();
                    MakeZeroPMC(5, 969);
                }
                if (CheckBitData(5, 970) == true)                                   
                {
                    DumpMasterDataG2V();
                    MakeZeroPMC(5, 970);
                }
                if (CheckBitData(5, 971) == true)                                   
                {
                    DumpMasterDataG2Q();
                    MakeZeroPMC(5, 971);
                }
            
                System.Threading.Thread.Sleep(10);
            }

GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Richard Deeming10-Nov-22 2:00
mveRichard Deeming10-Nov-22 2:00 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil10-Nov-22 16:37
Radheya Patil10-Nov-22 16:37 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
jsc4210-Nov-22 5:08
professionaljsc4210-Nov-22 5:08 
GeneralRe: My Code gets stuck at MessageBox.Show() after pressing OK it does not move further. Pin
Radheya Patil10-Nov-22 16:39
Radheya Patil10-Nov-22 16: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.