Thread: strange name2ee output

  1. #1
    Registered User
    Join Date
    May 2006
    Posts
    1,579

    strange name2ee output

    Hello everyone,


    Before I start my managed code program (C#), when I execute name2ee command, there is no output, but after the program starts, there is expected output. Any ideas?

    (here are the output 2 times and my source code)

    Code:
    0:000> !name2ee *!TestDebugManaged1.Program
    
    0:004> !name2ee *!TestDebugManaged1.Program
    Module: 0000064278854000 (mscorlib.dll)
    --------------------------------------
    Module: 0000064280012e20 (TestDebugManaged1.exe)
    Token: 0x0000000002000002
    MethodTable: 0000064280013580
    EEClass: 00000642801421c0
    Name: TestDebugManaged1.Program
    
    namespace TestDebugManaged1
    {
        class Program
        {
            public void foo()
            {
                int a = 100;
                while (true)
                {
                    Thread.Sleep(10000);
                    a++;
                }
            }
            
            static void Main(string[] args)
            {
                Program instance = new Program();
                instance.foo();
                return;
            }
        }
    }

    thanks in advance,
    George

  2. #2
    the hat of redundancy hat nvoigt's Avatar
    Join Date
    Aug 2001
    Location
    Hannover, Germany
    Posts
    3,130
    Before I start my managed code program (C#), when I execute name2ee command, there is no output, but after the program starts, there is expected output. Any ideas?
    So you are saying you cannot debug/disassemble your program before it is loaded into memory ? This is .NET, you are asking why you can't debug/disassemble before it was even (JIT) compiled ? Is this some sort of trick question ?
    hth
    -nv

    She was so Blonde, she spent 20 minutes looking at the orange juice can because it said "Concentrate."

    When in doubt, read the FAQ.
    Then ask a smart question.

  3. #3
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    He does nothing but trick the minds of those who reads his threads
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Output an array in a textbox
    By Diablo02 in forum C# Programming
    Replies: 5
    Last Post: 10-18-2007, 03:56 AM
  2. Binary Search - Strange Output
    By mike_g in forum C Programming
    Replies: 13
    Last Post: 06-16-2007, 02:55 PM
  3. Connecting input iterator to output iterator
    By QuestionC in forum C++ Programming
    Replies: 2
    Last Post: 04-10-2007, 02:18 AM
  4. Trying to store system(command) Output
    By punxworm in forum C++ Programming
    Replies: 5
    Last Post: 04-20-2005, 06:46 PM
  5. Really strange, unexpected values from allocated variables
    By Jaken Veina in forum Windows Programming
    Replies: 6
    Last Post: 04-16-2005, 05:40 PM