Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I would Like to Know if there's a way to see what is in the Memory wile Debugging.
eg. see what data-tables are still active ,Where most of the memory is allocated to ect...
I know about the "Watch" Feature in VS2013 But its not really what I'm looking for,I want to know what objects i did not dispose of correctly.And to go trough it manually is HARD!Something like a memory overview.I have tried Process explorer too but it only shows how mush the process is using at the moment in total,its good to check for a Memory leak however.
If Something like this exists is there a tutorial you can point me to?
ANTS Memory Profiler will allow you analyze which objects are in memory when you expect them not to. As well as let you investigate why that is.
I'm sure there are other, similar tools.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I want to set automatically cleaning method for a desktop running application, because it throw an error "out of memory".
Is there any way to do this?
.
There is already an "automatic cleaning method"; the GC. You should virtually never need to tell it what to do - it understands memory more than most people do. If your code is throwing OOM, you need to investigate why; for example, are you leaking objects? (static event handlers are notorious for this); are you asking for huge slabs of contiguous memory (huge arrays, etc)? are you asking for an array that is more than 2 GiB (without large array support enabled)? are you running on 32-bit and just using lots of memory? is it actually not really an OOM condition, but really GDI+ handle exhaustion (which demonstrates in the same way)?
The first thing to check is how much memory your process is using - and how much free memory the OS has - when it throws OOM. If there is plenty of free memory, it isn't actually OOM (unless you're using over 1 GiB on a 32-bit system, in which case all bets are off).
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I am a new user of C# (for work), coming from C++ development. I'm used to knowing more or less how data is laid out, and how many levels of pointer indirection there are, as these things can be very important for performance.
I know I'm supposed to just relax and have a good time hammering out business software and not think about these details on the clock, but is there good documentation for this for C# somewhere?
I know there is compilation to IR, and then JIT to native code, so I guess I am asking about how C# source relates to the native x86-64 code.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have a requirement wherein I need to check if the hard disk isn't RAID before turning on a feature that encrypts the hard disk. Is there a built-in class in C# that would let me find this? I looked at the MSDN-DriveInfo class and it does not seem to have that information.
Not sure if you can check if a hard drive is RAID, I am pretty sure you can't because the hard drive just looks like one physical drive, but I would look into Windows Management Instrumentation (WMI), the .NET libraries are System.Management and System.Management.Instrumentation, here is an article that demos usage:
http://www.codeguru.com/columns/vb/getting-hard-disk-information-with-wmi-and-visual-studio-2012.htm
If you are using WMI, you can test BusType of MSFT_Disk. I am not sure how reliable it is though.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am near release date for my Excel Add-In and I want to have only one limitation hardcoded in the code. My aim is for people to download and use the tool for free but have a limitation that potentially encourages them to buy the unlimited version. I know that there isn't a truly secure way to add that limitation but I was wondering what is the best way of achieving it. The limitation is simply a hardcoded value that I store in the Properties section of my app. Any ideas how I can make it a bit more secure?
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I just bought visual studio 2013, and am using the debugger. I am wondering if there is something built in that will tell you how long something takes to load--How long a variable takes to get populated, one breakpoint to another, etc. Is this possible somehow?
You can use Profilers for such statistics.
Have look at Analyzing Application Performance by Using Profiling Tools.
I would also recommend watching Visual Studio 2013 Performance and Diagnostic Hub
For good dotnet Profilers have a look at this post :
What Are Some Good .NET Profilers?
As a side note:
There are different profilers for different languages and chores, you need to specify what exactly you need, then you can pick their respective profilers.
For example if you needed to work with DataBases, you could use sqlsever profiler, or Oracle profiler,(all major DMBSs have their profilers) the same thing goes to c++, etc