How to fix stack overflow in VB.Net

Susan MacKinnon 0 Reputation points
2023-03-26T20:26:49.2266667+00:00

I recently ported an old VB6 application to VB.NET where there are several subroutines which are nested. I keep getting a stack overflow. This can happen as often as every 10 minutes. The main subroutine is also called by a timer. If I set the timer to 500 msec, I get the error every 10 minutes. If I set the timer to 3500 msec, I get the error every 8 hours.

What is the best way to diagnose this error?

Developer technologies Visual Studio Debugging
{count} votes

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.