DotMemory self profiling hangs

Hello,
In a C++/CLI application, I have referenced the SelfApi dll, created an instance of SaveSnapshotProfilingConfig
and tried to invoke SelfAttach.Attach with the instance of SaveSnapshotProfilingConfig.

SaveSnapshotProfilingConfig^ setting = 
gcnew SaveSnapshotProfilingConfig();

setting->ProfilingControlKind = ProfilingControlKind::Api;
setting->SaveDir = "C:\\Temp";
setting->RedistDir = "C:\\ProfilerSDK";
setting->ProfilingType = ProfilingType::Memory;
setting->ListFile = "C:\\snapshot_list.xml"; 
SelfAttach::Attach(setting);

But the application hangs/ Attach method waits indefinitely. 
Please help.

1
1 comment

Hello,

Could you please create project sample for us? You can download it to our ftp server or attach to support ticket.

https://uploads.services.jetbrains.com/

0

Please sign in to leave a comment.