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

C#

 
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 
AnswerRe: Creating object stops execution of entire function Pin
I.explore.code26-Jun-07 3:47
I.explore.code26-Jun-07 3:47 
Hi DanC,

Is MyObject a class(public or private) and Var1 and Var2 are class variables that u r accessing with the object instance of that class ? If that is so, then I would say the code ideally works fine, it steps into the function when called by an event lets say button click, this is what i wrote

<br />
private void button2_Click(object sender, EventArgs e)<br />
        {<br />
            Init();            <br />
        }<br />
        public class MyObject<br />
        {<br />
            public string Var1;<br />
            public int Var2;<br />
        }<br />
        public void Init()<br />
        {<br />
            //DoSomething();<br />
            //DoSomethingElse();<br />
            MyObject obj= new MyObject();<br />
            obj.Var1 = "Test";<br />
            obj.Var2 = 123;<br />
            // More var setting here<br />
        }<br />

and it is running fine, I think the execution on ur side is exiting the application, try and analyse the code further and let me know
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 
QuestionC# custom event handlers/controls Pin
donovan.solms26-Jun-07 2:43
donovan.solms26-Jun-07 2:43 

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.