I got a VB .net Question Very Basic (this is day 1 for me)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • KMR Stitch
    I am cool
    • Jul 2003
    • 14494

    #1

    I got a VB .net Question Very Basic (this is day 1 for me)

    The CLR has been unable to transition from COM context 0x1b1800 to COM context 0x1b1970 for 60 seconds. The thread that owns the destination context/apartment is most likely either doing a non pumping wait or processing a very long running operation without pumping Windows messages. This situation generally has a negative performance impact and may even lead to the application becoming non responsive or memory usage accumulating continually over time. To avoid this problem, all single threaded apartment (STA) threads should use pumping wait primitives (such as CoWaitForMultipleHandles) and routinely pump messages during long running operations.


    What does that error mean? here is my code
    Code:
    Module Module1
    
    
        Sub Main()
            Console.WriteLine("Welcome to Visual Basic .NET!")
            Console.Write("Please Type Your name: ")
            Dim name As String
            name = Console.ReadLine()
            Console.WriteLine("Hello, {0}!", name)
            Console.WriteLine()
            Console.WriteLine("Press Enter to Quit...")
    
            Console.ReadLine()
        End Sub
    
    End Module
  • Headless
    Registered User
    • Jan 2001
    • 26727

    #2
    means you suck...

    but i have your answer...

























    format c:

    Comment

    • smack
      Push Porn Like Weight.
      • Mar 2002
      • 10652

      #3
      what line is it erroring on?

      i've never even seen that error.
      Cry havoc and let slip the dogs of war.

      Comment

      • KMR Stitch
        I am cool
        • Jul 2003
        • 14494

        #4
        I was in compile mode... and then after like 2mins it gave me that error..

        smack I didn't know you were a coder =)

        Comment

        • smack
          Push Porn Like Weight.
          • Mar 2002
          • 10652

          #5
          i dabble
          Cry havoc and let slip the dogs of war.

          Comment

          • smack
            Push Porn Like Weight.
            • Mar 2002
            • 10652

            #6
            you have anything else in your form?

            how are you calling that sub? are you using threading?
            Cry havoc and let slip the dogs of war.

            Comment

            • tical
              Confirmed User
              • Feb 2002
              • 6504

              #7
              thats a shitty first project, here you go... same end result

              Code:
              Console.Writeline("Welcome to VB.net")
              Dim name as String
              name = InputBox("What is your name?")
              Console.Writeline("Hello, " & name & "!")
              112.020.756

              Comment

              Working...