Solved

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

Posted on 2009-03-30
11
2,808 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
11 Comments
 
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
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 
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
 
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

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

717 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