VB.NET: application.restart() enters break mode (x-post from /r/dotnet)

Exactly what the title says. When I’m debugging my project and I enter the part where the application restarts (using Application.Restart() ) Visual Studio opens break mode. Is there any way to prevent this from happening and restart the application?

It also sometimes comes up with System.ComponentModel.Win32Exception: ‘The operation was canceled by the user’ Is there a better way to restart the application? I can’t simply reset the variables as I disposed a few of them.

submitted by /u/ethantheflyingpotato
[link] [comments]

Leave a Reply