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

JclStackInfoList: TJclStackInfoList; #15

Closed
maxkleiner opened this issue Apr 8, 2020 · 1 comment
Closed

JclStackInfoList: TJclStackInfoList; #15

maxkleiner opened this issue Apr 8, 2020 · 1 comment

Comments

@maxkleiner
Copy link
Owner

add JclStackInfoList: TJclStackInfoList; to baselib:
function GetCallStack: String;
var
JclStackInfoList: TJclStackInfoList;
StringList: TStringList;
begin
JclStackInfoList := JclCreateStackList(True, 3, Caller(0, False));
try
StringList := TStringList.Create;
try
JclStackInfoList.AddToStrings(StringList, True, False, True, True);
Result := StringList.Text;
finally
StringList.Free;
end;
finally
JclStackInfoList.Free;
end;
end;

@maxkleiner
Copy link
Owner Author

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