An unhandled exception of type ''System.StackOverflowException'' occurred in mscorlib.dll?

Hello everyone,
I'm using the latest VB release (2005 beta 2?) and the latest .NET framework (2.0?). Everything was working fine earlier today as I was working on my application, which plays MP3s. It contains several forms and I moved the control I use to play media from one form to the other and changed my code accordingly. After this I began receiving the error:
An unhandled exception of type 'System.StackOverflowException' occurred in mscorlib.dll

I have no idea what this means and it doesnt give me a specific line that's erroring but I still set out and looked around to try and find out what's wrong, but I couldn't. I've commented out the code I added, reversed my changes, looked for recursive functions or infinite loops and I can't find anything that could be causing this error.
Has anyone else had this problem? If so, what can I do to fix it?
[1062 byte] By [Inkybro] at [2008-1-7]
# 1

Hi,

The current release is VS2005 RC (release candidate). Can you even create a simple application? A hello world example maybe? If not then it must be a faulty installation.

cheers,

Paul June A. Domag

PaulDomag at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 2
I can create applications. I've made a few and the one I'm developing was working earlier. I even made a small app after this problem started happening and everything works.
Inkybro at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 3

Hi,

Could you post a code snippet in where you think the problem usually occurs... IMHO, its a code conversion issue. What's the last version of Visual studio did your program compile?

cheers,

Paul June A. Domag

PaulDomag at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 4

Hi,

Seems a problem with some control. When the control is attached to the form it won't compile. But when its removed, everything worked fine. I think its the problem of the third party control. I guess its not VS2005 compatible...

cheers,

Paul June A. Domag

PaulDomag at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...
# 5

I got the similar error when I used

MyBase.OnInit(e) along with

AddHandler to handle an event eg. Formview_itemcreated.

The error was sorted out when I commented MyBase.OnInit(e).

Hope this helps

AmeetBala at 2007-10-2 > top of Msdn Tech,Visual Basic,Visual Basic General...