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. Error Instantiating Class

Error Instantiating Class

Scheduled Pinned Locked Moved C#
data-structureshelpquestion
4 Posts 2 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.
  • O Offline
    O Offline
    obelisk29
    wrote on last edited by
    #1

    I am getting a Stack Overflow Exception anytime I try to instantiate my custom class any ideas?

    C 1 Reply Last reply
    0
    • O obelisk29

      I am getting a Stack Overflow Exception anytime I try to instantiate my custom class any ideas?

      C Offline
      C Offline
      Corinna John
      wrote on last edited by
      #2

      Any recursive method/contructor calls?

      O 1 Reply Last reply
      0
      • C Corinna John

        Any recursive method/contructor calls?

        O Offline
        O Offline
        obelisk29
        wrote on last edited by
        #3

        Um like reinstantiating the class in the constructor?

        C 1 Reply Last reply
        0
        • O obelisk29

          Um like reinstantiating the class in the constructor?

          C Offline
          C Offline
          Corinna John
          wrote on last edited by
          #4

          Did you trace the constructor call in single-step mode? Maybe it calls a neverending method, or it calls itself like that: public MyClass(int x):this(x){}

          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