If I have a desktop application and I need to close it, I call the Close() method. But, since two years, on occasional basis, when we call that method, this generates an unknown exception in memory. This is very difficult to troubleshoot as I haven't found yet the way to simulate that.
However, I have been thinking about something. When I programatically send a message to the application so it will close itself, this is usually done three levels down the hierarchy of the program operations. Thus, it is one method calling another calling another. I have been wondering if calling Close() from three levels deep could have such an impact.
Any comment?