I have a C# exe application ,in which i am using memory in terms of string.I have my 65 instances of my exe applcation runnning simultaneosly.So is there any issye of memmory wastage or memory is deallocated or memory is released by strings variables once exe applcation execution completed.
I know that .net has a CLR and garbage collector but i am not running my applcation on .net framework.It is running on OS by sechduling exe in task manager.So please clear my cancern?
Loading
Neerav SachdevaPosted Oct 27, 2010, 4:35 AM
Sam HobbsPosted Oct 27, 2010, 3:55 AM
If an application (a process) is killed, as in terminated abnormally, it does not have the opportunity to clean up everything so there could be some memory that remains allocated. This is true for all programs whether they use garbage collection or not because a garbage collector does not get the opportunity to work when the application is killed. The most common reason for killing a process is when the process hangs and won't do anything; you cannot make it exit in any other way. The Task Manager "Processes" tab can be used to kill a process; the "Applications" tab will first try to get a process to complete normally, which gives the process the opportunity to clean itself up if it is not hung. The Applications tab will kill a process if the process does not close normally.
The other possibility is the use of graphics improperly. It is unlikely you need to be concerned about that; if you use C# and do not use the Windows API directly then the .Net classes will take care of memory for you. If you don't understand this then do not be concerned; it is unlikely you will need to be concerned about this.
Neerav SachdevaPosted Oct 27, 2010, 2:03 AM
Suthish NairPosted Oct 27, 2010, 1:49 AM
Neerav SachdevaPosted Oct 27, 2010, 12:58 AM
Thanks for your's reply.
Sam HobbsPosted Oct 27, 2010, 12:43 AM
Mahesh ChandPosted Oct 26, 2010, 11:57 PM