Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
QuestionAny way to log on to a web page ? Pin
paresh_joe26-Sep-08 3:32
paresh_joe26-Sep-08 3:32 
AnswerRe: Any way to log on to a web page ? Pin
Guffa26-Sep-08 3:54
Guffa26-Sep-08 3:54 
Questionmemory usage Pin
reza assar26-Sep-08 2:21
reza assar26-Sep-08 2:21 
AnswerRe: memory usage Pin
Ashfield26-Sep-08 3:25
Ashfield26-Sep-08 3:25 
AnswerRe: memory usage Pin
Dan Neely26-Sep-08 3:55
Dan Neely26-Sep-08 3:55 
AnswerRe: memory usage Pin
Guffa26-Sep-08 4:01
Guffa26-Sep-08 4:01 
GeneralRe: memory usage Pin
reza assar26-Sep-08 13:09
reza assar26-Sep-08 13:09 
GeneralRe: memory usage Pin
Guffa26-Sep-08 15:22
Guffa26-Sep-08 15:22 
reza assar wrote:
yes i looked at task manager
but it wont release my ram memory until i close the application


What you see in the task manager is how much memory the memory manager has allocated, not how much memory is actually used.

reza assar wrote:
it wont release even when i dispose my object explicitly


You should always dispose objects that are disposable. That's how you control the life cycle of the object. Disposing objects however doesn't mean that their memory is reclaimed, that is done by the garbage collector when it's convenient or when it's needed.

If the garbage collector would reclaim the memory for every single object that is released, your program would run much slower. To free a few bytes the garbage collector would have to move several megabytes around in memory just to align the objects continuously in memory.

reza assar wrote:
do you mean that i have not to be worry about that 300MB of ram ?
it`s so expensive !!!!


You don't have to worry. Unless you have done something wrong, the memory will be reclaimed if it's needed. If you minimise the program you should see how it reacts when the system tells it to make an effort to release memory.

The way that the .NET framework handles memory seems expensive only as you are focusing on the amount of memory allocated. A computer doesn't run better if it has a lot of unused memory. On the contrary, it would be more expensive to move the objects around in memory all the time so that you could release every single byte of unused memory to the system, only to make it look better in the task manager.

Despite everything, the person most likely to be fooling you next is yourself.

AnswerRe: memory usage Pin
Paul Conrad26-Sep-08 5:55
professionalPaul Conrad26-Sep-08 5:55 
GeneralRe: memory usage Pin
reza assar26-Sep-08 13:16
reza assar26-Sep-08 13:16 
GeneralRe: memory usage Pin
Paul Conrad26-Sep-08 13:19
professionalPaul Conrad26-Sep-08 13:19 
QuestionUsing exchange,mapi33 [c#] Pin
ugarte26-Sep-08 1:55
ugarte26-Sep-08 1:55 
QuestionSaving changes to bitmap file Pin
Muammar©26-Sep-08 1:46
Muammar©26-Sep-08 1:46 
AnswerRe: Saving changes to bitmap file Pin
Giorgi Dalakishvili26-Sep-08 2:26
mentorGiorgi Dalakishvili26-Sep-08 2:26 
AnswerRe: Saving changes to bitmap file Pin
PandemoniumPasha26-Sep-08 2:46
PandemoniumPasha26-Sep-08 2:46 
AnswerRe: Saving changes to bitmap file Pin
Guffa26-Sep-08 7:08
Guffa26-Sep-08 7:08 
GeneralRe: Saving changes to bitmap file Pin
Muammar©28-Sep-08 0:11
Muammar©28-Sep-08 0:11 
AnswerRe: Saving changes to bitmap file Pin
Dave Kreskowiak26-Sep-08 10:30
mveDave Kreskowiak26-Sep-08 10:30 
GeneralRe: Saving changes to bitmap file Pin
Muammar©27-Sep-08 5:02
Muammar©27-Sep-08 5:02 
GeneralRe: Saving changes to bitmap file Pin
Dave Kreskowiak27-Sep-08 11:03
mveDave Kreskowiak27-Sep-08 11:03 
GeneralRe: Saving changes to bitmap file Pin
Muammar©28-Sep-08 0:18
Muammar©28-Sep-08 0:18 
QuestionTools for Team Working (like Visual Source Safe) in VS2008 Team Suite. Pin
hdv21226-Sep-08 1:44
hdv21226-Sep-08 1:44 
AnswerRe: Tools for Team Working (like Visual Source Safe) in VS2008 Team Suite. Pin
Simon P Stevens26-Sep-08 4:22
Simon P Stevens26-Sep-08 4:22 
GeneralRe: Tools for Team Working (like Visual Source Safe) in VS2008 Team Suite. Pin
hdv21226-Sep-08 7:20
hdv21226-Sep-08 7:20 
GeneralRe: Tools for Team Working (like Visual Source Safe) in VS2008 Team Suite. Pin
Simon P Stevens27-Sep-08 3:14
Simon P Stevens27-Sep-08 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.