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. Visual Basic
  4. [SOLVED] Getting System.StackOverflowException

[SOLVED] Getting System.StackOverflowException

Scheduled Pinned Locked Moved Visual Basic
questiondata-structures
2 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.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    Hello. I am getting this stack overflow exception. I have tried different things like: - making the current class Shared - or using a counter to see if the class already has an instance? But none of them is working for me. Here is what I am trying ( read comments as well )

    Imports SomeLibrary

    Public Class ABC

    Private WithEvents instance As New ClassName ' a class in imported dll

    Public Sub New() 'break point here. getting executed again and again

    End Sub

    End Class

    So how can I get better of this exception? Thanks.

    This world is going to explode due to international politics, SOON.

    J 1 Reply Last reply
    0
    • A AmbiguousName

      Hello. I am getting this stack overflow exception. I have tried different things like: - making the current class Shared - or using a counter to see if the class already has an instance? But none of them is working for me. Here is what I am trying ( read comments as well )

      Imports SomeLibrary

      Public Class ABC

      Private WithEvents instance As New ClassName ' a class in imported dll

      Public Sub New() 'break point here. getting executed again and again

      End Sub

      End Class

      So how can I get better of this exception? Thanks.

      This world is going to explode due to international politics, SOON.

      J Offline
      J Offline
      Jay Royall
      wrote on last edited by
      #2

      You have a circular reference somewhere; does the class 'ClassName' from imported DLL have a reference to class 'ABC'?

      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