Solved

VB.Net  Application.Restart() crashing error "EventType clr20r3"

Posted on 2009-03-30
11
2,761 Views
Last Modified: 2013-11-26
Why does the application.restart() method crash with "EventType clr20r3" recorded in the application logs on some PC's? How can I go about finding the cause of the error?

Example code below:
Imports System.Windows.Forms

Public Class Form1

    Private Sub buttonRestart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonRestart.Click

        Application.Restart()

    End Sub

    Private Sub buttonQuit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles buttonQuit.Click

        Application.Exit()

    End Sub

End Class

Open in new window

0
Comment
Question by:Rabbit80
  • 6
  • 5
11 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 24016820
0
 
LVL 1

Author Comment

by:Rabbit80
ID: 24037772
OK - I tried the above - I have no listviews in my program :(

The error trapping routine in the second link does not catch the error. I have put the addhandler into ApplicationEvents.vb startup.

I still have no ideas what is causing this - It does not happen on every machine.. Most PC's seem to be fine, but I have 2 (so far) that cause this error!
0
 
LVL 1

Author Comment

by:Rabbit80
ID: 24038520
I just installed VB Express on one of the PC's with issues. If I run my program from within VB everything works fine. If I publish my program and install it, thats when I start to have problems!
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 24054814
Don't you have some external controls ?
0
 
LVL 1

Author Comment

by:Rabbit80
ID: 24063135
Yes - I use several external controls (firefox - due to a bug in IE causing high CPU usage, libcurl and a text capture dll)

What effect does this have on the restart? The application starts fine manually, it exits fine - except on shutdown/logoff.. Its only if I restart it that I have an issue!
0
Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

 
LVL 1

Author Comment

by:Rabbit80
ID: 24078026
Given up on this one and written a new Initialize routine to reload everything instead!
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 500 total points
ID: 24078454
Sorry I couldn't help you more but this is a odd problem and not usual (as you may know)
0
 
LVL 1

Author Comment

by:Rabbit80
ID: 24082301
Sure - thanks for trying.

Could you give me some pointers in how I might trace the cause - for example if it is one of the external controls? I'll award you the points for trying anyway!
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 24082340
This problems are very difficult to trace. Sometimes you need to comment some instructions and run the application, then uncomment those ones and comment another ones, etc.
Something, and you can try that maybe, you can create a new solution and copy all you forms to there.
0
 
LVL 1

Author Comment

by:Rabbit80
ID: 24082559
The problem with that is that it will break my application and not necessarily allow me to get to the part where it restarts..
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 24082589
How about create a new solution and import all your forms, classes, etc ?
0

Featured Post

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now