Click here to Skip to main content
15,916,215 members
Home / Discussions / C#
   

C#

 
GeneralRe: "TEETH SEGMENTATION AND EXTRACTION" Pin
Eddy Vluggen28-Mar-09 1:18
professionalEddy Vluggen28-Mar-09 1:18 
AnswerRe: "TEETH SEGMENTATION AND EXTRACTION" Pin
Henry Minute28-Mar-09 10:35
Henry Minute28-Mar-09 10:35 
Questionthemes for windows application Pin
lnmca27-Mar-09 20:06
lnmca27-Mar-09 20:06 
AnswerRe: themes for windows application Pin
King Julien27-Mar-09 23:36
King Julien27-Mar-09 23:36 
GeneralRe: themes for windows application Pin
lnmca28-Mar-09 2:11
lnmca28-Mar-09 2:11 
GeneralRe: themes for windows application Pin
Colin Angus Mackay28-Mar-09 10:04
Colin Angus Mackay28-Mar-09 10:04 
AnswerRe: themes for windows application Pin
Ravi Bhavnani28-Mar-09 5:37
professionalRavi Bhavnani28-Mar-09 5:37 
QuestionLog file in C# Pin
mrithula827-Mar-09 19:11
mrithula827-Mar-09 19:11 
Hi I have listed and then started all the exe files.As and when the exe starts a log file should be maintained which will contain the start time of the exe.So i used the following code.It gives" NullException Object reference not set to an instance of an object" for the following line
stw1.WriteLine("UdpServer at port 10000 has started at:", start1.ToString());
if (cb.Checked)
            {
                n1 = lb4.Text;
                // System.Diagnostics.Process.Start(n1);
                si1 = new ProcessStartInfo(n1);
                proc = Process.Start(si1);
                proclist.Add(proc);

                DateTime start1 = proc.StartTime;
                if (!File.Exists("startlog1.txt"))
                {
                    stw1 = new StreamWriter("startlog1.txt");
                }
                else
                {
                    File.AppendText("startlog1.txt");
                }
                stw1.WriteLine("UdpServer at port 10000 has started at:", start1.ToString());
                stw1.WriteLine("=======================================================================");
                stw1.Flush();
            }

            if (cb1.Checked)
            {
                n2 = lb5.Text;
                //System.Diagnostics.Process.Start(n2);
                ProcessStartInfo si2 = new ProcessStartInfo(n2);
                proc = Process.Start(si2);
                proclist.Add(proc);

                DateTime start2 = proc.StartTime;
                if (!File.Exists("startlog2.txt"))
                {
                    stw2 = new StreamWriter("startlog2.txt");
                }
                else
                {
                    File.AppendText("startlog2.txt");
                }
               
                stw2.WriteLine("UdpServer at port 10001 has started at:", start2.ToString());
                stw2.WriteLine("=======================================================================");
                stw2.Flush();

            }

AnswerRe: Log file in C# Pin
Luc Pattyn27-Mar-09 20:47
sitebuilderLuc Pattyn27-Mar-09 20:47 
GeneralRe: Log file in C# Pin
mrithula827-Mar-09 21:02
mrithula827-Mar-09 21:02 
GeneralRe: Log file in C# Pin
Luc Pattyn27-Mar-09 21:53
sitebuilderLuc Pattyn27-Mar-09 21:53 
GeneralRe: Log file in C# Pin
Colin Angus Mackay28-Mar-09 9:58
Colin Angus Mackay28-Mar-09 9:58 
GeneralRe: Log file in C# Pin
Colin Angus Mackay28-Mar-09 10:02
Colin Angus Mackay28-Mar-09 10:02 
AnswerRe: Log file in C# Pin
King Julien27-Mar-09 23:32
King Julien27-Mar-09 23:32 
GeneralRe: Log file in C# Pin
Colin Angus Mackay28-Mar-09 9:54
Colin Angus Mackay28-Mar-09 9:54 
GeneralRe: Log file in C# Pin
King Julien29-Mar-09 19:43
King Julien29-Mar-09 19:43 
GeneralRe: Log file in C# Pin
Colin Angus Mackay29-Mar-09 21:22
Colin Angus Mackay29-Mar-09 21:22 
QuestionRaw Mouse Input (C#) Pin
Al Mendoza27-Mar-09 15:49
Al Mendoza27-Mar-09 15:49 
AnswerRe: Raw Mouse Input (C#) Pin
Eddy Vluggen28-Mar-09 1:17
professionalEddy Vluggen28-Mar-09 1:17 
QuestionNeed some help with active MDI in a tabcontrol Pin
deaddog420127-Mar-09 15:05
deaddog420127-Mar-09 15:05 
AnswerRe: Need some help with active MDI in a tabcontrol Pin
Henry Minute28-Mar-09 11:07
Henry Minute28-Mar-09 11:07 
GeneralRe: Need some help with active MDI in a tabcontrol Pin
deaddog420129-Mar-09 7:53
deaddog420129-Mar-09 7:53 
GeneralRe: Need some help with active MDI in a tabcontrol Pin
deaddog420129-Mar-09 8:21
deaddog420129-Mar-09 8:21 
GeneralRe: Need some help with active MDI in a tabcontrol Pin
Henry Minute29-Mar-09 12:16
Henry Minute29-Mar-09 12:16 
Questionnotification ballon tip Pin
AlexPizzano27-Mar-09 14:53
AlexPizzano27-Mar-09 14:53 

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.