code: public void disposeAll() {
          for( WeakReference<Com4jObject> ref : objects) {
          	Com4jObject o = ref.get();
          	if(o != null) {
          		o.dispose();
          	}
          }
          objects.clear();
      }
docs: Calls the {@link Com4jObject#dispose()} method for all the {@link Com4jObject}s
  known to this {@link ComObjectCollector}.
  
  <p>
  Each time this method is called, it forgets all the disposed objects.