A Form (needs 10.2A+) that shows all persistent objects in the session (useful for quick visual for memory or memory leak troubleshooting).
You can run the attached file with
DEFINE VARIABLE objShowPersistentObjects AS CLASS ShowPersistentObjects NO-UNDO. objShowPersistentObjects = NEW ShowPersistentObjects(). objShowPersistentObjects:Show().
while your program is running and each time you'll click back on the ShowPersistentObjects Form, the Form will be refreshed and show you the objects that are currently loaded in memory.
The program calls:
System.GC:Collect(). System.GC:WaitForPendingFinalizers(). System.GC:Collect().
to try to force .NET garbage collection before it shows the objects that are still in memory.
Attachment | Size |
---|---|
ShowPersistentObjects screenshot.JPG | 148.15 KB |
ShowPersistentObjects.cls-1.1.zip | 5.32 KB |
Comments
Missing dependancies
When I try to execute using OE10.2B01 I get following error
---------------------------
Error (Press HELP to view stack trace)
---------------------------
Could not find class or interface pt.OERA.SILFunction. (12886)
** \tools\oehive\ShowPersistentObjects.cls Could not understand line 89. (196)
---------------------------
OK Help
---------------------------
\tools is in my propath.
Regards
Carl Verbiest
removed reference to SILFunction
I removed all the references to SILFunction