CW and Contenta API Memory Management

CW is a cross-platform application that runs on both Windows and UNIX and uses the Contenta API. On Windows, the Contenta API is COM-based. For Java applications (e.g., CW), the following guidelines must be followed:

  • Java code for Windows only – releases of Contenta API objects are done automatically when wrapper objects are garbage collected
  • Java code for UNIX or cross-platform - releases of Contenta API objects must be done explicitly by the programmer
  • Recommendation: Always explicitly clean up Contenta API objects in custom Java code – for cleaner programming and cross-platform support