slowly I'm overworked...
I have a huge application with threading, timers, invoke (not BeginInvoke, so it is synchronous) and Application.DoEvents.
It is too much to post here and I don't know where the problem really is.
Every Method of mine is inside a try catch. Every catch is logged.
If I start my application from Visual Studio (F5) or while profiling it via Ants there is no Problem. The Application runs since some days.
But as soon as I start the same debug version via windows explorer it freezes every few hours. It freezes without any exception or so.
If I attach visual studio to this application and break it, it stops on Application.Run(new Form1());
I'm really confused and have no idea to repair it.
It is a .net 3.5 winforms application
It looks like one thread hangs here:
Код: Выделить всё
if (grabber.InvokeRequired)
{
Console.WriteLine("grabber.InvokeRequired");
this.Invoke((MethodInvoker) delegate { grabber.Navigate("http://www.google.de"); }); //
Источник: [url]https://stackoverflow.com/questions/10894839/application-freezes-outside-of-visual-studio-while-starting-it-from-visual-stud[/url]