Click here to Skip to main content
15,907,395 members
Home / Discussions / C#
   

C#

 
GeneralRe: System.Diagnostics.Design? Pin
Vodstok9-Apr-07 7:13
Vodstok9-Apr-07 7:13 
GeneralRe: System.Diagnostics.Design? Pin
Colin Angus Mackay9-Apr-07 7:37
Colin Angus Mackay9-Apr-07 7:37 
GeneralRe: System.Diagnostics.Design? Pin
Vodstok9-Apr-07 7:43
Vodstok9-Apr-07 7:43 
AnswerRe: System.Diagnostics.Design? Pin
Dan Neely9-Apr-07 7:11
Dan Neely9-Apr-07 7:11 
QuestionWhere is my memory? [modified] Pin
lak-b9-Apr-07 5:17
lak-b9-Apr-07 5:17 
AnswerRe: Where is my memory? Pin
S. Senthil Kumar9-Apr-07 6:36
S. Senthil Kumar9-Apr-07 6:36 
GeneralRe: Where is my memory? Pin
lak-b9-Apr-07 7:49
lak-b9-Apr-07 7:49 
GeneralRe: Where is my memory? Pin
S. Senthil Kumar9-Apr-07 9:28
S. Senthil Kumar9-Apr-07 9:28 
lak-b wrote:
Hm.. I understand that i have to do something with IntPtr (and i decide to renew it). But how can i "cleaning up the memory pointed to by IntPtr"?


Simply calling new IntPtr() doesn't clear off the memory, you need to find out how memory was allocated for the pointer (like using Marshal.AllocHGlobal) and use the corresponding free function to free up the memory.

lak-b wrote:
About profiler. At my computer it run wery slow and there are a lot of different data.


Yes, your app will run slower in the profiler. The word document that comes with the profiler can help you figure out what the data means. The first diagram that comes up shows the objects allocated so far and the method stack which led to their allocation. However, it only shows managed objects, so if you're leaking unmanaged memory (for e.g. by calling AllocXXX but not calling FreeXXX), CLR Profiler won't help.

To quickly find out whether you're leaking managed or unmanaged memory, fire up perfmon (Type perfmon.msc at the command prompt), right click on the graph, click Add Counters, select ".NET CLR Memory" from the Performance Object combobox, select your process in the list box in the right and select "#Bytes in all Heaps" in the listbox on the right. Hit Add, Close. Repeat the operation that leads to the memory leak and check if the "#Bytes in all Heaps" counter's value keeps increasing proportionately. If it does, you have a managed memory leak, otherwise, you are leaking unmanaged memory.

Regards
Senthil [MVP - Visual C#]
_____________________________
My Blog | My Articles | My Flickr | WinMacro

QuestionDecorator Pattern Related Question Pin
jubilanttiger9-Apr-07 4:31
jubilanttiger9-Apr-07 4:31 
AnswerRe: Decorator Pattern Related Question Pin
Leslie Sanford9-Apr-07 6:14
Leslie Sanford9-Apr-07 6:14 
QuestionThread Aorting Pin
HexaDeveloper9-Apr-07 3:37
HexaDeveloper9-Apr-07 3:37 
AnswerRe: Thread Aorting Pin
Leslie Sanford9-Apr-07 5:32
Leslie Sanford9-Apr-07 5:32 
GeneralRe: Thread Aorting [modified] Pin
HexaDeveloper10-Apr-07 14:01
HexaDeveloper10-Apr-07 14:01 
Questioncombobox database value Pin
msogun9-Apr-07 3:36
msogun9-Apr-07 3:36 
AnswerRe: combobox database value Pin
Colin Angus Mackay9-Apr-07 3:42
Colin Angus Mackay9-Apr-07 3:42 
QuestionWhich is better C# or VC++.NET Pin
BlrBoy9-Apr-07 2:33
BlrBoy9-Apr-07 2:33 
AnswerRe: Which is better C# or VC++.NET Pin
Colin Angus Mackay9-Apr-07 3:41
Colin Angus Mackay9-Apr-07 3:41 
QuestionBetter to save locally? Pin
Aaron VanWieren9-Apr-07 2:27
Aaron VanWieren9-Apr-07 2:27 
AnswerRe: Better to save locally? Pin
Colin Angus Mackay9-Apr-07 3:40
Colin Angus Mackay9-Apr-07 3:40 
GeneralRe: Better to save locally? Pin
Aaron VanWieren9-Apr-07 5:47
Aaron VanWieren9-Apr-07 5:47 
GeneralRe: Better to save locally? Pin
Colin Angus Mackay9-Apr-07 6:22
Colin Angus Mackay9-Apr-07 6:22 
GeneralRe: Better to save locally? Pin
Aaron VanWieren9-Apr-07 6:33
Aaron VanWieren9-Apr-07 6:33 
QuestionHow to invoke web service method in C#.Net Pin
shanthivasan9-Apr-07 2:25
shanthivasan9-Apr-07 2:25 
AnswerRe: How to invoke web service method in C#.Net Pin
WillemM9-Apr-07 7:01
WillemM9-Apr-07 7:01 
QuestionReport Viewer Pin
vinayak baddi9-Apr-07 2:07
vinayak baddi9-Apr-07 2:07 

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.