in managed/JetBrains.Timeline.Profiler.Api/Src/Impl/TimelineProfilerInterop.cs [67:73]
public void CheckError(IntPtr errorMessage)
{
if (errorMessage == IntPtr.Zero) return;
var errorStr = Marshal.PtrToStringAnsi(errorMessage);
myReleaseString(errorMessage);
throw new ApplicationException(errorStr);
}