1. A method comprising: requesting a native resource with an application; creating a memory allocation containing an object that references the application and the name and address of the native resource; and returning the object to the application for use of the native resource.