.NET Windows form application shutdown unexcpectedly

102 Views Asked by At

Currently, I'm experiencing a problem with mine VB.net application. The thing is that one supplier of a specific software that we use is causing some kind of incompatibility issue with our system. When I install our supplier's software, our VB.net application just shutdowns unexpectedly. It loads the first login screen and then when I load the main form it just opens and then closes in sequence. If I uninstall the supplier application the problem stops.

It only happens when I'm not debugging. When I start the application in debug mode the error does not occur. I've managed to discover the control that is causing the incompatibility but I could not find a way of avoiding this error without removing the control. The component is a Telerik.WinControls.UI.Docking.RadDock used in an MDI form.

Do you guys experienced something like that? Why the problem only occurs when I'm not debugging?

--EDIT--

I've created logging routines at ApplicationEvents.vb to discover if it is crashing (UnhandledException) or just shutting down (Shutdown method). The application simply shuts down, it doesn't throw any exception. I've looked the system event viewer and there isn't any log or info about the problem. When I go to the .designer of the form with the RadDock and remove the line Me.Controls.Add(Me.RadDock1) the software runs fine without closing. The problem is that I need this component, I can't simply remove it.

0

There are 0 best solutions below