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

DynamicObjectLeak - Allow using custom helper methods to delete dynamic objects #1124

Open
Ton-Pe opened this issue May 17, 2024 · 0 comments

Comments

@Ton-Pe
Copy link

Ton-Pe commented May 17, 2024

We have a helper class that we use to delete dynamic objects. (And I now some other companies use similar methods too).

USING Foo.Util.GarbageCollectorHelper FROM PROPATH.
BLOCK-LEVEL ON ERROR UNDO, THROW.
DEFINE VARIABLE xObj AS HANDLE NO-UNDO.

CREATE BUFFER xObj FOR TABLE "Item" NO-ERROR.    

FINALLY:
    GarbageCollectorHelper:DeleteObject(xObj).
END.

Could it be possible to add custom parameter to the rule, where we could give the name of the class and method, like GarbageCollectorHelper:DeleteObject (or a list of class:method would be even better), and the rule would use this in addition to DELETE-OBJECT phrase to locate where object is deleted?

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