Click here to Skip to main content
15,887,477 members
Home / Discussions / C#
   

C#

 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming2-Feb-11 22:38
All Time Programming2-Feb-11 22:38 
AnswerRe: How to run a Command and retrieve data from it ? Pin
Pravin Patil, Mumbai2-Feb-11 22:17
Pravin Patil, Mumbai2-Feb-11 22:17 
AnswerRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 0:00
mveOriginalGriff3-Feb-11 0:00 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 1:02
All Time Programming3-Feb-11 1:02 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 1:11
mveOriginalGriff3-Feb-11 1:11 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 1:24
All Time Programming3-Feb-11 1:24 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 1:30
mveOriginalGriff3-Feb-11 1:30 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:02
All Time Programming3-Feb-11 2:02 
>> Or: are you using the release version of the library in the app, and modifying the debug version?

What do you mean ? I change the code in library and build it. The reference is added in main application. I build the main app, which updates the dll file and I execute the application. I checked the dll file date/time in main app, its of Release version of library. The library & app is in Release version.

Should they be in Debug version ? How to change them ?

The spacing must not be a problem as I copy from the output only and put in my if to look for indexOf.

But yes, I think that applying BP on 1st line of Process_OutputDataReceived while execution helps. It got the "Cannot load file..." line and it went in isInvalid, went inside that if, changed "connected = false", and for the next line
        else if (isInValidLine(d))
        {
            //throw new Exception(d);
            connected = false;     // MADE THIS
            errorMsg = d;          // EXECUTED THIS ALSO BUT AGAIN VALUE = ""
            return;
        }


private bool isInValidLine(string line)
{
    if (line.IndexOf("Cannot load CA certificate file") > 0)
    {
        errorMsg = line;   // EXECUTED THIS, BUT VALUE REMAINED ""
        return true;
    }
    return false;
}


i GUESS i GOT TO debug more carefully. AND should I remove & add refernce everytime I buid the library ?

Thanks & Regards,


GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 2:30
mveOriginalGriff3-Feb-11 2:30 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:49
All Time Programming3-Feb-11 2:49 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 3:01
mveOriginalGriff3-Feb-11 3:01 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 3:17
All Time Programming3-Feb-11 3:17 
GeneralRe: How to run a Command and retrieve data from it ? Pin
All Time Programming3-Feb-11 2:56
All Time Programming3-Feb-11 2:56 
GeneralRe: How to run a Command and retrieve data from it ? Pin
OriginalGriff3-Feb-11 3:06
mveOriginalGriff3-Feb-11 3:06 
GeneralRe: How to run a Command and retrieve data from it ? [modified] Pin
All Time Programming3-Feb-11 3:27
All Time Programming3-Feb-11 3:27 
AnswerRe: How to run a Command and retrieve data from it ? Pin
PIEBALDconsult3-Feb-11 1:44
mvePIEBALDconsult3-Feb-11 1:44 
QuestionPrint Settings for ReportViewer pogrammatically Pin
freshonlineMax2-Feb-11 18:24
freshonlineMax2-Feb-11 18:24 
GeneralRe: Print Settings for ReportViewer pogrammatically Pin
Praveen Raghuvanshi2-Feb-11 19:07
professionalPraveen Raghuvanshi2-Feb-11 19:07 
GeneralRe: Print Settings for ReportViewer pogrammatically Pin
freshonlineMax2-Feb-11 19:46
freshonlineMax2-Feb-11 19:46 
Question[Solved] Drag'N'Drop to and on control [modified] Pin
lukeer2-Feb-11 4:04
lukeer2-Feb-11 4:04 
AnswerRe: Drag'N'Drop to and on control Pin
Henry Minute2-Feb-11 9:25
Henry Minute2-Feb-11 9:25 
GeneralRe: Drag'N'Drop to and on control Pin
lukeer4-Feb-11 0:17
lukeer4-Feb-11 0:17 
Questionbound datagridview new row problem Pin
Erdinc272-Feb-11 2:22
Erdinc272-Feb-11 2:22 
AnswerRe: bound datagridview new row problem Pin
Not Active2-Feb-11 3:47
mentorNot Active2-Feb-11 3:47 
GeneralRe: bound datagridview new row problem Pin
Erdinc272-Feb-11 4:13
Erdinc272-Feb-11 4:13 

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.