1. A method for executing a managed application that calls a procedure in a native library comprising: storing a reference associated with some data that is to be passed from the managed application to the procedure in the native library; executing the procedure in the native library; and retrieving the reference associated with the data when the data is called for by the procedure in the native library.