Share via

System.StackOverflowException

Imaad Isaacs 1 Reputation point
13 Jun 2021, 22:01

Im not sure why im getting this error

105120-screenshot-26.png

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,927 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
11,404 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Sam of Simple Samples 5,551 Reputation points
    13 Jun 2021, 23:45

    Without additional information I can only guess. The only possible explanation based on the information available is that the InitializeComponent method is being called recursively. Perhaps it would help if you update the question and show how (and everywhere) the InitializeComponent method is being called.

    In your image look in the toolbar for Stack Frame:. It is at the second row under the search box. While debugging click on the stack frame to open the drop-down. If you can post an image of that then that will help. It might show the InitializeComponent method being called multiple times.


  2. WayneAKing 4,926 Reputation points
    14 Jun 2021, 00:12
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.