Click here to Skip to main content
15,860,972 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
DaveyM6910-Jul-08 2:02
professionalDaveyM6910-Jul-08 2:02 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
c242310-Jul-08 3:16
c242310-Jul-08 3:16 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
PIEBALDconsult10-Jul-08 4:05
mvePIEBALDconsult10-Jul-08 4:05 
AnswerRe: how to make global variables which could be accessable in all the project c# Pin
RK KL10-Jul-08 5:22
RK KL10-Jul-08 5:22 
Questionproblem in gridview Pin
Mogaambo10-Jul-08 0:52
Mogaambo10-Jul-08 0:52 
AnswerRe: problem in gridview Pin
dan!sh 10-Jul-08 1:17
professional dan!sh 10-Jul-08 1:17 
QuestionWCF and Mtom Pin
Simon Lime10-Jul-08 0:19
Simon Lime10-Jul-08 0:19 
Questionwhy my program breaks? Pin
George_George9-Jul-08 23:55
George_George9-Jul-08 23:55 
Hello everyone,


My operation is like this, I am using WinDbg to set a breakpoint to method foo. Here is what I did.

0:000> !bpmd TestDebug.exe TestDebug.Program.foo
Adding pending breakpoints...
0:000> lm
start             end                 module name
00000000`00400000 00000000`00408000   TestDebug C (private pdb symbols)  D:\Visual Studio 2008\Projects\TestDebug\TestDebug\bin\Debug\TestDebug.pdb

0:000> g
(1b0.5c4): CLR exception - code e0434f4d (first chance)
(1b0.5c4): CLR exception - code e0434f4d (!!! second chance !!!)
KERNEL32!RaiseException+0x5c:
00000000`77d4dd10 4881c4c8000000  add     rsp,0C8h
 
But when pressing g, and the program stops, then I pressed k to display the current stack. I found there is no my code in the stack. The seems the stop execution is not because of breakpoint (because no break point  hit information)? I am so confused. Any ideas?
 
namespace TestDebug
{
    class Program
    {
        static void foo()
        {
            int a = 100;
            throw new Exception ("Hello Exception Debug");
        }
        
        static void Main(string[] args)
        {
            foo();
        }
    }
}



thanks in advance,
George
AnswerRe: why my program breaks? Pin
Thomas Stockwell10-Jul-08 4:55
professionalThomas Stockwell10-Jul-08 4:55 
GeneralRe: why my program breaks? Pin
George_George10-Jul-08 16:03
George_George10-Jul-08 16:03 
QuestionMDIChild FormBorderStyle.None Pin
Cristina Afonso9-Jul-08 23:33
Cristina Afonso9-Jul-08 23:33 
QuestionMDI problem Pin
Yulianto.9-Jul-08 23:15
Yulianto.9-Jul-08 23:15 
QuestionDo you know which event fire ? Pin
banker_kiran9-Jul-08 23:04
banker_kiran9-Jul-08 23:04 
QuestionHow to store connection string in global.asax file and web.config file using c# Pin
sacr839-Jul-08 22:50
sacr839-Jul-08 22:50 
QuestionMaskedTextBox Time Validation in Visual C#.Net Pin
somagunasekaran9-Jul-08 21:33
somagunasekaran9-Jul-08 21:33 
QuestionHow to pass value from thread to GUI in C# Pin
Susanmat9-Jul-08 21:32
Susanmat9-Jul-08 21:32 
AnswerRe: How to pass value from thread to GUI in C# Pin
N a v a n e e t h9-Jul-08 22:38
N a v a n e e t h9-Jul-08 22:38 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat9-Jul-08 22:57
Susanmat9-Jul-08 22:57 
GeneralRe: How to pass value from thread to GUI in C# Pin
Daniel Grunwald9-Jul-08 23:22
Daniel Grunwald9-Jul-08 23:22 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat10-Jul-08 0:26
Susanmat10-Jul-08 0:26 
GeneralRe: How to pass value from thread to GUI in C# Pin
N a v a n e e t h10-Jul-08 1:43
N a v a n e e t h10-Jul-08 1:43 
AnswerRe: How to pass value from thread to GUI in C# Pin
RK KL10-Jul-08 5:31
RK KL10-Jul-08 5:31 
GeneralRe: How to pass value from thread to GUI in C# Pin
Susanmat10-Jul-08 21:13
Susanmat10-Jul-08 21:13 
Questionexecute sql Pin
arkiboys9-Jul-08 21:02
arkiboys9-Jul-08 21:02 
AnswerRe: execute sql Pin
Ashfield9-Jul-08 21:24
Ashfield9-Jul-08 21:24 

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.