![]() |
|||
AROS Application Development ManualWarnung This document is not finished! It is highly likely that many parts are out-of-date, contain incorrect information or are simply missing altogether. If you want to help rectify this, please contact us. Resource Tracking (RT)Everyone talks about RT but what's it anyway? RT means three things:
The current implementation can do all three things but to enable it, you must make some modifications to your code. The only disadvantage of the current implementation is that the resources won't be freed if the program crashes.
The advantages are that you will get errors if you try to access resources which you didn't allocate and that you will get a list of resources which you didn't free at the end of your program. All messages will contain the position in the code where the error happened (if available) and the position in the code where the resource was allocated (this is the reason why RT has to be compiled in. It could be built into the OS, too, but it would be hard to gather the information where an error occurred). A good example about how to use RT and what it can do can be found in AROS/workbench/demos/rtdemo.c. The following resources are tracked:
|
Copyright © 1995-2009, The AROS Development Team. All rights reserved. Amiga®, AmigaOS®, Workbench und Intuition sind eingetragene Warenzeichen von Amiga Inc. Alle anderen Warenzeichen gehören dem jeweiligen Besitzer. |