Why does process is still present although close?

K

kimiraikkonen

I made a very small (2 forms) application with VB.NET 2005 express and
second form contains web-browser component and flash movie inside it.
Everything OK but after i close the program via normal (from X from
top right), the .exe process of my application is still in memory and
visible in "Windows Task Manager" costing 60MB memory!!!

The debugged application is only 32kb but it costs 60MB from memory
which also does NOT kill itself despite i close after usage....

Why? What are the reasons of not to be killed application .exe
automatically after close for a project developed under VB.NET? Vb.NET
bug?

Thank you.
 
K

kimiraikkonen

I made a very small (2 forms) application with VB.NET 2005 express and
second form contains web-browser component and flash movie inside it.
Everything OK but after i close the program via normal (from X from
top right), the .exe process of my application is still in memory and
visible in "Windows Task Manager" costing 60MB memory!!!

The debugged application is only 32kb but it costs 60MB from memory
which also does NOT kill itself despite i close after usage....

Why? What are the reasons of not to be killed application .exe
automatically after close for a project developed under VB.NET? Vb.NET
bug?

Thank you.

Tried with another app which has 2 forms as same and the second form
is empty (no web-browser components, flash or any...) still process is
present in memory in task manager although i close it. It started to
think it's a vb.net bug?

Could you test or specify the reasons of non-killing automatically
applications?

Everytime i had to kill process manually by doing ctrl-alt-del to
fresh memory...
 
K

kimiraikkonen

Tried with another app which has 2 forms as same and the second form
is empty (no web-browser components, flash or any...) still process is
present in memory in task manager although i close it. It started to
think it's a vb.net bug?

Could you test or specify the reasons of non-killing automatically
applications?

Everytime i had to kill process manually by doing ctrl-alt-del to
fresh memory...

Updated: I found what the problem was: "Hide" statement. If i use Hide
statement, although i close the program completely, it still appears
in Task Manager, but if i don't use Hide statement for a form, no
problem.

But the persistant and hopeless problem is gigantic memory usage just
for 32kb little app which costs 60MB! I don't know whether it's
releted to .NET or framework but definetely terrible...

Why does small projects cause gigantic memory usages?
 
D

Dave Griffiths

Hi I am suffering the same problem, see post ablove "Program still
running after close", I am assuming this is a bug now and not something
I have forgotten to include in the program.
 
D

Dave Griffiths

Hi.

I do not use the hide staement in my app yet I still get the same
behaviour.

The 60Mb looks very high, mine is 32K on disk and between 4 and 5 Mb in
memory.
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

kimiraikkonen said:
Updated: I found what the problem was: "Hide" statement. If i use Hide
statement, although i close the program completely, it still appears
in Task Manager, but if i don't use Hide statement for a form, no
problem.

I assume that you hid your start form and opened the second form. Then
closing the second form will not close the first form, it just stays
hidden. The program does exactly what you told it to, it's not the fault
of the programming language that you didn't provide a way to get back to
the first form. :)
But the persistant and hopeless problem is gigantic memory usage just
for 32kb little app which costs 60MB! I don't know whether it's
releted to .NET or framework but definetely terrible...

Why does small projects cause gigantic memory usages?

As you are using a web browser component and flash, I'm not that
surprised that it uses a lot of memory. Start up Internet Explorer, and
watch it use 20-30 MB before even browsing anywhere.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top