Is there a way to trap system resources for debugging purposes? We have an application that uses some 3rd party controls / ActiveX exe's / etc. What we'd like to do is write a log record each time we access one of the 3rd parties' properties/methods to see if we're experiencing a memory leak. We'd like to use API calls rather than, for example, another 3rd party control. We'd like to log memory usage, available memory, available system resources and anything else that's available that might be useful. Any ideas?