Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

access violation in GetFrameBasedStackTrace #61

Open
sajtran opened this issue Oct 30, 2018 · 1 comment
Open

access violation in GetFrameBasedStackTrace #61

sajtran opened this issue Oct 30, 2018 · 1 comment

Comments

@sajtran
Copy link

sajtran commented Oct 30, 2018

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
Copy link
Author

sajtran commented Oct 30, 2018

win32 subsystem on Windows 10 x64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant