C
C#M9k

Stack overflow exception when closing one form

Can't seem to find the issue.. I have a startscreen, and when any key is pressed on startscreen it takes me to the next form (frmLvl1). But this doesn't work anymore. Instead I get an overflow exception in frmLvl1 on a soundplayer. I tried to make the soundplayer a comment, but then it was just the next one that got an exception Here's the code: https://paste.mod.gg/ujqeprzayhyd/4 The exception in the screenshot is at line 26 in level1.cs
BlazeBin - ujqeprzayhyd
A tool for sharing your source code with the world!
No description
A
ACiDCA713d ago
look into the callstack
M
M9k13d ago
Damn, how can I fix this?
No description
A
ACiDCA713d ago
you have an endless loop of creating frmlvl1 and frmgameover stop creating one of them in the other and it should be fixed