Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. exception

exception

Scheduled Pinned Locked Moved C#
tutorialquestion
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    cst_kvp
    wrote on last edited by
    #1

    Explain NullReferenceException? How to resolve it?

    L C N B 4 Replies Last reply
    0
    • C cst_kvp

      Explain NullReferenceException? How to resolve it?

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      It's when you try to something with an object, but the object hasnt been created. Look at MSDN for tons of examples.

      xacc.ide - now with TabsToSpaces support
      IronScheme - 1.0 alpha 4a out now (29 May 2008)

      1 Reply Last reply
      0
      • C cst_kvp

        Explain NullReferenceException? How to resolve it?

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Fix your code. If you don't know how, post it so we can explain it to you.

        Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )

        1 Reply Last reply
        0
        • C cst_kvp

          Explain NullReferenceException? How to resolve it?

          N Offline
          N Offline
          N a v a n e e t h
          wrote on last edited by
          #4

          It occurs when you are accessing an object with NULL value. Make sure you instantiated object using new keyword.

          cst_kvp wrote:

          Explain NullReferenceException

          OT : why don't you be polite when asking questions ? Read this[^]

          All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

          N 1 Reply Last reply
          0
          • N N a v a n e e t h

            It occurs when you are accessing an object with NULL value. Make sure you instantiated object using new keyword.

            cst_kvp wrote:

            Explain NullReferenceException

            OT : why don't you be polite when asking questions ? Read this[^]

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            N Offline
            N Offline
            Nagy Vilmos
            wrote on last edited by
            #5

            N a v a n e e t h wrote:

            why don't you be polite when asking questions ?

            You're wasting your time. All his questions are

            Subject: Life Explain life?

            The concept of actually showing what is being attempted to provide context is alien to him.


            Panic, Chaos, Destruction. My work here is done.

            1 Reply Last reply
            0
            • C cst_kvp

              Explain NullReferenceException? How to resolve it?

              B Offline
              B Offline
              Brady Kelly
              wrote on last edited by
              #6

              Kill the null! :mad:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups