FastMM4 icon indicating copy to clipboard operation
FastMM4 copied to clipboard

access violation in GetFrameBasedStackTrace

Open sajtran opened this issue 7 years ago • 1 comments

Hi I replaced with

procedure GetFrameBasedStackTrace(AReturnAddresses: PNativeUInt;
  AMaxDepth, ASkipFrames: Cardinal);
var
  LStackTop, LStackBottom, LCurrentFrame: NativeUInt;
begin
  {Get the call stack top and current bottom}
  GetStackRange(LStackTop, LStackBottom);
  Dec(LStackTop, 2 * SizeOf(Pointer) );
  {Get the current frame start}
  LCurrentFrame := LStackBottom;
  {Fill the call stack}
  while (AMaxDepth > 0)
    and (LCurrentFrame >= LStackBottom)
    and (LCurrentFrame <= LStackTop) do
  begin

MemTest.zip

sajtran avatar Oct 30 '18 06:10 sajtran

win32 subsystem on Windows 10 x64

sajtran avatar Oct 30 '18 06:10 sajtran