RE: Further to the Discussion

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi Sunny,

Oh, it seems that you did not register the MSDN subscription account
correctly for the 'Relationship between Application.Exit() and AppDomain'
issue on 27 of April 2008, since we did not get it in the internal support
tool. Anyway, you have got it setup correctly in this post since we can see
it now.

Ok, let's come back to your questions. "System.Windows.Application class"
is a WPF class which is completely different from the
"System.Windows.Forms.Application class". "System.Windows.Application
class" is the .Net Winform concept class. You should not confuse and use
these two concepts together. Since you are writing the .Net Winform code,
you should always using the information of Winform not WPF:
http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.as
px

Winform "System.Windows.Forms.Application class" has nothing to do with
AppDomain concept. You can think of "System.Windows.Forms.Application" as
the message loop encapsulation unit of GUI application.

Application.Exit() only kills the "Application"(Message Loop), not the
entire AppDomain, so what you saw is expected.
http://msdn2.microsoft.com/en-us/library/system.windows.forms.application.ex
it.aspx

Hope this makes sense to you.

Best regards,
Jeffrey Tan
Microsoft Online Community Support

Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

.



Relevant Pages

  • RE: VB.net 2005 Forms application intermintently freezing
    ... However, since .Net Winform controls are all STA, only the ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Events And Multiple Threads
    ... Net winform multithreading programming rule and is prone to programming ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.csharp)
  • RE: Cross-thread operation not valid
    ... In .Net winform area, the correct way to deal with cross-thread calling is ... difference between various timer class in .Net: ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Global error handler
    ... VB2005 UnhandledException encapsulates .Net Winform ... error handler for unhandled exceptions based on the application types. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.dotnet.languages.vb)
  • Re: How do I use AppDomains and add search paths to it?
    ... Yes, for the new AppDomain, you should use AppDomainSetup.PrivateBinPath ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ... project analysis and dump analysis issues. ...
    (microsoft.public.dotnet.languages.csharp)