Monitoring System Resources Usage
| Description: | This example explains how make sure dynamically created Visual LANSA objects do not exhaust system resources. |
|---|---|
| Price: | FREE |
| Support: | Supplied on an as-is basis |
| Environment: | Visual LANSA |
| Contributor: | LANSA |
| Details: | As your Visual LANSA applications become more sophisticated you need
to be mindful when dynamically creating Visual LANSA objects. Typically
a Visual LANSA object is dynamically created using commands like this:Set_Ref #SomeReference To(*Create_As #SomeClassName)or Set_Ref #SomeReference To(*Create_From #VaribleContainingClassName) If you do this type of thing in your Visual LANSA you may find this example useful. Why might you need to know this? A Visual LANSA application may exhaust a computer resource (e.g. memory, system handles) because your application code is dynamically creating many Visual LANSA objects, but failing to destroy them when they are no longer needed. In some cases you may even think you are destroying dynamically created objects, but unless you have actually tested this, you may find that subtle issues in your design or code is preventing this and causing resource leakage. This example demonstrates and explains:
|
| Disclaimer: |
Users of the Exchange who download any Component do so with the express understanding and agreement of the foregoing disclaimers. |
| Download: | |
| Example: |
![]() |
