?
Solved

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

Posted on 2009-03-30
11
Medium Priority
?
2,835 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
Basic Security of Your VPC

So, you’ve got this shiny new VPC and a fancy new application configured on your EC2 servers ready to go. This application is only accessible from your computer, which is great for security, but you need your users to be able to access it! So, what’s the easiest way to do this?

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
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…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
Suggested Courses

765 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