Search found 7 matches

by dcerny
Fri Mar 01, 2019 4:14 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

the call stack is above (it is the same exception). I've decompiled and debugged your code. The problem is, that type Player has no namespace, therefore type.Namespace=null in method SciTech.NetMemProfiler.TypeNameBuilder.AppendPrettyTypeString(StringBuilder dest, Type type) Looking forward for quic...
by dcerny
Fri Mar 01, 2019 3:52 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

v5.6.4 throws the same exception.
by dcerny
Fri Mar 01, 2019 9:51 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

Hello guys,
any update?
Without this feature we will have to downgrade and ask refund.
Can you simply add some quick fix like try/catch in AppendPrettyTypeString() and when it fails return "less pretty" type string (e.g. Type.Name)
Or, if you send me source code, I can debug it..
thank you
by dcerny
Mon Feb 18, 2019 10:52 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

Hello,
the update of nuget package didn't help. The exception is the same.
The project uses .NET Framework 4.6.1.
Player class is not nested, declaration:
sealed class Player : AgentHuman, IAgentAttributeItem
by dcerny
Fri Feb 15, 2019 4:25 pm
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

I have tried the API with trial license of CodeRush. This code: public class MemProfilerTests { [Test] public void MemLeakTest() { Assert.IsTrue(MemProfiler.IsProfiling); MemProfiler.FastSnapshot(); MemAssertion.NoNewInstances(typeof(Player)); } } fails with exception: System.NullReferenceException:...
by dcerny
Thu Feb 14, 2019 8:47 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

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

Hello and thanx for answer. Feature "Run Tests under the Profiler" (in VS.NET) was the only reason, why we have upgraded to enterprise edition. When it will be fixed?
thank you
by dcerny
Wed Feb 13, 2019 8:20 am
Forum: Using .NET Memory Profiler
Topic: .NET Profiler API + Run Tests under the Profiler
Replies: 13
Views: 1338

.NET Profiler API + Run Tests under the Profiler

Hello, I have NET Memory Profiler Enterprise edition v 5.6.46.0. I want to profile unit tests in VS.NET and use profiler API. I use "Profiler > Run Tests under the Profiler" command, profiler session starts, then I start the test in VS.NET Test Explorer, the test finishes, but profiler collects no d...