Click here to Skip to main content
15,885,953 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Control resize to init after changing language Pin
Bernhard Hiller4-Aug-14 20:49
Bernhard Hiller4-Aug-14 20:49 
GeneralRe: Control resize to init after changing language Pin
ChriSSi0034-Aug-14 21:26
ChriSSi0034-Aug-14 21:26 
GeneralRe: Control resize to init after changing language Pin
Bernhard Hiller4-Aug-14 23:38
Bernhard Hiller4-Aug-14 23:38 
GeneralRe: Control resize to init after changing language Pin
ChriSSi0035-Aug-14 0:49
ChriSSi0035-Aug-14 0:49 
Question.net memory leaks Pin
Bret Stern3-Aug-14 16:10
Bret Stern3-Aug-14 16:10 
AnswerRe: .net memory leaks Pin
MarkLTX3-Aug-14 16:40
MarkLTX3-Aug-14 16:40 
GeneralRe: .net memory leaks Pin
Bret Stern3-Aug-14 18:46
Bret Stern3-Aug-14 18:46 
AnswerRe: .net memory leaks PinPopular
Dave Kreskowiak3-Aug-14 17:26
mveDave Kreskowiak3-Aug-14 17:26 
Bret Stern wrote:
watch memory in task manager),


There's your first mistake. Task Manager is not showing you how much memory your application is using, but how much the .NET CLR has RESERVED for your application. Use the .NET Memory counters in PerfMon to find out how much memory your app is actually using.

By reserved, I mean your application can free memory that it isn't using any more but that memory goes back the Managed Heap for future allocations. It will not be freed back to Windows unless the CLR deems that it doesn't need the memory or Windows starts to run low on memory and requests that the .NET CLR frees up whatever it can.

The is a completely automatic process and the .NET Memory Manager does it's job very well. You do not need to worry about freeing up the memory yourself.

Next, this depends on what you're using to show the second form. If you use the .ShowDialog() method on your form instance you MUST call Dispose() method on the form instance when you're done with the form. If you don't do this you WILL run into memory and handle issues, possibly running Windows out of resources.

Oh, and do NOT call GC.Collect() unless you know exactly why you're doing it and understand completely the impacts on the GC. You can easily negatively impact the performance of your application by calling Collect unnecessarily.
A guide to posting questions on CodeProject

Click this: Asking questions is a skill.
Seriously, do it.

Dave Kreskowiak

GeneralRe: .net memory leaks Pin
Bret Stern3-Aug-14 18:44
Bret Stern3-Aug-14 18:44 
QuestionHow to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Tutun20142-Aug-14 2:11
Tutun20142-Aug-14 2:11 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Eddy Vluggen2-Aug-14 12:25
professionalEddy Vluggen2-Aug-14 12:25 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Dave Kreskowiak3-Aug-14 17:17
mveDave Kreskowiak3-Aug-14 17:17 
AnswerRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Bernhard Hiller3-Aug-14 20:48
Bernhard Hiller3-Aug-14 20:48 
GeneralRe: How to get all the visited url lists from any browser programmatically using c# in .Net 2.0 framework Pin
Nathan Minier6-Aug-14 10:24
professionalNathan Minier6-Aug-14 10:24 
Questionsherdian controls : license not found Pin
zuber ahmed2-Aug-14 1:40
zuber ahmed2-Aug-14 1:40 
AnswerRe: sherdian controls : license not found Pin
Richard MacCutchan2-Aug-14 2:51
mveRichard MacCutchan2-Aug-14 2:51 
Questionhi Pin
TNKumar31-Jul-14 19:42
TNKumar31-Jul-14 19:42 
QuestionRe: hi Pin
Richard MacCutchan31-Jul-14 20:30
mveRichard MacCutchan31-Jul-14 20:30 
AnswerRe: hi Pin
TNKumar31-Jul-14 23:55
TNKumar31-Jul-14 23:55 
GeneralRe: hi Pin
Richard MacCutchan31-Jul-14 23:59
mveRichard MacCutchan31-Jul-14 23:59 
GeneralRe: hi Pin
TNKumar1-Aug-14 0:06
TNKumar1-Aug-14 0:06 
GeneralRe: hi Pin
Richard MacCutchan1-Aug-14 0:44
mveRichard MacCutchan1-Aug-14 0:44 
AnswerRe: hi Pin
arpoador1-Aug-14 6:51
arpoador1-Aug-14 6:51 
QuestioniDB2Connection Connection slow Pin
byka29-Jul-14 2:30
byka29-Jul-14 2:30 
AnswerRe: iDB2Connection Connection slow Pin
thatraja29-Jul-14 3:28
professionalthatraja29-Jul-14 3:28 

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.