Hi
I have a winform app. When this app is closed it remains under 'Processes'
in Task Manager. What is the problem and how can I ensure that app closes
completely and releases all resources?
Thanks
Regards
Hi,
There may be several reasons, for example, if your application is
alive and uses notify control, you need to close it from notification
icon by assigning a contextmenu control by adding "me.close" to one of
its items. You can also make notfifyicon usable by putting code on
form's load:
NotifyIcon1.Icon = Me.Icon
Also, if your application contains some "hidden" forms which are
previously hidden though you think you've exited, your application is
supposed to be still alive as background process, and you need to
close hidden form with "close" method gently.
Additionaly, your application may remain alive if it interops with
other assemblies or processes during its lifetime depending on your
application's references.
Finally, make sure you're disposing all resources using with "Using"
statement if one of your application's classes use an IDisposable
object.
Hope this helps,
Onur Güzel