Search found 1035 matches

by Andreas Suurkuusk
Fri Mar 01, 2019 3:54 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

That's really strange. Can your provide the call stack of the exception?
by Andreas Suurkuusk
Fri Mar 01, 2019 3:12 pm
Forum: Using .NET Memory Profiler
Topic: Failed to save session file - Operation is not valid due to the current state of the object
Replies: 1
Views: 6890

Re: Failed to save session file - Operation is not valid due to the current state of the object

The "Item ... is not available" message is just an informational message and should not affect anything. The "Operation is not valid due to the current state of the object" error is a bug that we have fixed in the upcoming maintenance release of .NET Memory Profiler. It's a bit surprising that it oc...
by Andreas Suurkuusk
Fri Mar 01, 2019 2:52 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

I'm sorry for the delay. We have been working on the maintenance release of .NET Memory Profiler 5.6, with support for Visual Studio 2019. Now we have built a new version and we will probably release it in the beginning of the next week. Unfortunately, we have not been able to find a solution for th...
by Andreas Suurkuusk
Mon Feb 18, 2019 10:57 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

Thanks for the information. At the moment I don't know how this can occur. We will investigate this further and see if we can come up with an explanation/fix. I will get back to this thread as soon as we have some more information.
by Andreas Suurkuusk
Mon Feb 18, 2019 9:34 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

Your code looks fine. I don't understand how you can get a NullReferenceException when performing your assertions. We have investigated the API code and added a few more null-checks, but as far as I can see they should not be necessary. Anyway, can you test with the latest build of the profiler API?...
by Andreas Suurkuusk
Fri Feb 15, 2019 1:18 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

We're currently working on .NET Memory Profiler 6.0, but we are planning to release a maintenance release of version 5.6 within the next month. The release will mainly include support for Visual Studio 2019 and a few fixes. But, we will also look into the ""Run tests under profiler" feature and see ...
by Andreas Suurkuusk
Thu Feb 14, 2019 6:42 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 13696

Re: .NET Profiler API + Run Tests under the Profiler

Unfortunately, the “Run tests under Profiler” command is not always working correctly under later releases of Visual Studio 2017. This is due to an implementation change in the test runner in Visual Studio 2017, and we’re trying to find a solution for this. If we cannot find a solution, this feature...
by Andreas Suurkuusk
Mon Feb 04, 2019 7:40 am
Forum: Using .NET Memory Profiler
Topic: Understanding Total vs Held instances
Replies: 2
Views: 7231

Re: Understanding Total vs Held instances

"Held instances" are instances that are prevented from being garbage collected by the item (instance, type, filter) you are investigating. So you can have a single instance that have many "held instances". You can read more about held instance in the online documentation at https://memprofiler.com/o...
by Andreas Suurkuusk
Wed Jan 16, 2019 6:08 pm
Forum: Using .NET Memory Profiler
Topic: Can't do the same operation when opened with .NET Memory Profiler.
Replies: 1
Views: 6838

Re: Can't do the same operation when opened with .NET Memory Profiler.

Running an application under the profiler will increase the memory usage of the application and affect the performance. Other than that the application should function the same as when running without the profiler. What options are enabled when you profile the application? Did you enable the native ...
by Andreas Suurkuusk
Thu Dec 20, 2018 5:38 pm
Forum: Using .NET Memory Profiler
Topic: API: write dump/session to disk?
Replies: 4
Views: 8113

Re: API: write dump/session to disk?

Yes, it is normally recommended to collect more than one snapshot. This way you can more easily identify memory usage trends, e.g. see if there are types with additional instances in each new snapshot. With instance tracking enabled, you will also see the specific instances that are new in each snap...
by Andreas Suurkuusk
Mon Oct 15, 2018 9:48 am
Forum: Using .NET Memory Profiler
Topic: API: write dump/session to disk?
Replies: 4
Views: 8113

Re: API: write dump/session to disk?

Yes, you are correct. The profiler API is intended to control the profiler from within the profiled process, it cannot be used to initiate profiling by itself. There's an external API that can be used, but this API requires the full profiler to be installed on the machine which I assume will not wor...
by Andreas Suurkuusk
Fri Oct 05, 2018 2:22 pm
Forum: Using .NET Memory Profiler
Topic: No .NET runtime found in the process
Replies: 3
Views: 7439

Re: No .NET runtime found in the process

Thanks for the update. It is true that you get a 64-bit memory dump of a 32-bit process if you use the Task manager. However, this is something that should be handled correctly by .NET Memory Profiler. We will look into this and see if we can find some problems with the detection of 32-bit processes.
by Andreas Suurkuusk
Fri Oct 05, 2018 12:37 pm
Forum: Using .NET Memory Profiler
Topic: No .NET runtime found in the process
Replies: 3
Views: 7439

Re: No .NET runtime found in the process

Is the memory dump file you try to import a full memory dump file? (I.e. including all user mode data?) .NET Memory Profiler cannot include a memory dump that only includes partial information, e.g. call stacks. If you have a full memory dump, then this is something we would like to investigate furt...
by Andreas Suurkuusk
Thu Sep 20, 2018 8:38 pm
Forum: Using .NET Memory Profiler
Topic: Waiting for .Net runtime to be loaded
Replies: 1
Views: 7446

Re: Waiting for .Net runtime to be loaded

The "Waiting for .NET runtime to be loaded' message should disappear as soon as the profiler has detected any .NET runtime in the profiled process. If a .NET runtime cannot be detected, then either the process has not loaded a runtime, there's a problem with the installation, or there's a problem/bu...
by Andreas Suurkuusk
Wed Aug 22, 2018 10:53 am
Forum: General
Topic: I cannot install the memory profiler
Replies: 1
Views: 23945

Re: I cannot install the memory profiler

The error code 0x80070652 is defined as ERROR_INSTALL_ALREADY_RUNNING, which indicate that your failed installation is caused by another installation somehow. I recommend that you restart your computer and check that you don't have any pending Windows Update installs, or some other pending installs....