Thema: Delphi ComObject freigeben

Einzelnen Beitrag anzeigen

mr2

Registriert seit: 3. Mai 2003
140 Beiträge
 
Delphi 2006 Enterprise
 
#5

Re: ComObject freigeben

  Alt 23. Apr 2007, 22:06
  _IWMPEffects := nil; reicht vollkommen aus - der Delphi-Compiler generiert automatisch den _Release-Aufruf.
Unassigned sollte man nur verwenden, wenn man über späte Bindung (OleVariant) auf COM-Objekte zugreift.

mr2
"... we know, there are known knowns; there are things we know we know. We also know there are known unknowns; that is to say we know there are some things we don't know. But there are also unknown unknowns - the ones we don't know we don't know."
  Mit Zitat antworten Zitat