×

Associating a native resource with an application

  • US 7,203,941 B2
  • Filed: 11/14/2002
  • Issued: 04/10/2007
  • Est. Priority Date: 11/14/2002
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method comprising:

  • requesting a native resource with an application;

    creating a memory allocation containing an object that references the application and a name and an address of the native resource;

    returning the object to the application for use of the native resource;

    automatically checking the application to determine if the native resource can be released;

    creating a plurality of memory allocations corresponding to a plurality of native resources allocated in response to a respective plurality of requests from one or more said applications, wherein each said memory allocation contains an object that references one said application and that includes the name and address of one said native resource;

    wherein the creating a plurality of memory allocations further comprises, prior to creating each said memory allocation;

    determining that the memory allocation cannot be created by determining that the native resource requested by the application is unavailable;

    reviewing each said memory allocation that was previously created to determine if the application referenced by the object of the memory allocation is no longer using the native resource named in the object of the memory allocation;

    for each said native resource determined to be no longer used, removing the memory allocation containing the object that includes the name of the native resource determined to be no longer used to thereby release the native resource; and

    ,when a released said native resource corresponds to the native resource determined to be unavailable, creating a memory allocation containing an object that references the requesting said application and that includes the name and address of the released said native resource.

View all claims
  • 2 Assignments
Timeline View
Assignment View
    ×
    ×