Click here to Skip to main content
15,897,968 members
Home / Discussions / C#
   

C#

 
AnswerRe: Exists() method of System.Collections.Generic.List Pin
Giorgi Dalakishvili26-Jun-07 3:38
mentorGiorgi Dalakishvili26-Jun-07 3:38 
GeneralRe: Exists() method of System.Collections.Generic.List Pin
lossy26-Jun-07 3:48
lossy26-Jun-07 3:48 
AnswerRe: Exists() method of System.Collections.Generic.List Pin
Colin Angus Mackay26-Jun-07 3:41
Colin Angus Mackay26-Jun-07 3:41 
GeneralRe: Exists() method of System.Collections.Generic.List Pin
lossy26-Jun-07 3:52
lossy26-Jun-07 3:52 
GeneralRe: Exists() method of System.Collections.Generic.List Pin
Colin Angus Mackay26-Jun-07 4:02
Colin Angus Mackay26-Jun-07 4:02 
AnswerRe: Exists() method of System.Collections.Generic.List Pin
Nissim Salomon26-Jun-07 4:50
Nissim Salomon26-Jun-07 4:50 
GeneralRe: Exists() method of System.Collections.Generic.List Pin
lossy26-Jun-07 6:53
lossy26-Jun-07 6:53 
QuestionCreating object stops execution of entire function Pin
__DanC__26-Jun-07 3:01
__DanC__26-Jun-07 3:01 
Hi,

I have a problem in that I have a function as follows:

public void Init()<br />
{<br />
    DoSomething();<br />
    DoSomethingElse();<br />
<br />
    MyObject obj = new MyObject();<br />
    obj.Var1 = "Test";<br />
    obj.Var2 = 123;<br />
    // More var setting here<br />
}<br />


Now when I step through the code it stops debugging at the point of entering Init() in the calling event. By stops debugging I mean all execution appears to stop and it hangs, it does not even step into the Init() function but if I remove the '= new Object()' it will step into the function and execute the two top methods before giving a NullReferenceException as you would expect.

So my question is; what make the creation of a new object stop the entire enclosing method from executing?


AnswerRe: Creating object stops execution of entire function Pin
I.explore.code26-Jun-07 3:47
I.explore.code26-Jun-07 3:47 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 3:53
__DanC__26-Jun-07 3:53 
GeneralRe: Creating object stops execution of entire function Pin
Luc Pattyn26-Jun-07 4:34
sitebuilderLuc Pattyn26-Jun-07 4:34 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 4:46
__DanC__26-Jun-07 4:46 
GeneralRe: Creating object stops execution of entire function Pin
Nissim Salomon26-Jun-07 4:59
Nissim Salomon26-Jun-07 4:59 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 5:01
__DanC__26-Jun-07 5:01 
GeneralRe: Creating object stops execution of entire function Pin
Nissim Salomon26-Jun-07 5:15
Nissim Salomon26-Jun-07 5:15 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 5:16
__DanC__26-Jun-07 5:16 
GeneralRe: Creating object stops execution of entire function Pin
Nissim Salomon26-Jun-07 5:21
Nissim Salomon26-Jun-07 5:21 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 5:25
__DanC__26-Jun-07 5:25 
GeneralRe: Creating object stops execution of entire function Pin
Nissim Salomon26-Jun-07 5:46
Nissim Salomon26-Jun-07 5:46 
GeneralRe: Creating object stops execution of entire function Pin
Hesham Yassin26-Jun-07 7:46
Hesham Yassin26-Jun-07 7:46 
GeneralRe: Creating object stops execution of entire function Pin
Luc Pattyn26-Jun-07 5:33
sitebuilderLuc Pattyn26-Jun-07 5:33 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 5:37
__DanC__26-Jun-07 5:37 
GeneralRe: Creating object stops execution of entire function Pin
Luc Pattyn26-Jun-07 5:49
sitebuilderLuc Pattyn26-Jun-07 5:49 
GeneralRe: Creating object stops execution of entire function Pin
__DanC__26-Jun-07 5:55
__DanC__26-Jun-07 5:55 
GeneralRe: Creating object stops execution of entire function Pin
Luc Pattyn26-Jun-07 6:22
sitebuilderLuc Pattyn26-Jun-07 6:22 

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.