[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2009-03-30
11
Medium Priority
?
2,849 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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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:…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

656 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