Use of delete or pfDelete in C++ with pf2.0?

New Message Reply Date view Thread view Subject view Author view

Nicolas Gauvin (nicolas++at++cae.ca)
Thu, 4 Jan 1996 09:05:00 -0500


In chapter 14 (Programming with C++) of the programming guide it says:

"All objects of classes derived from pfObject or pfMemory are reference
counted and must be deleted using pfDelete() rather than the delete operator."

Suppose a new class 'A' is derived from pfObject. A destructor is defined for
this class A. Should pfDelete be used to delete an instance of A since it is
also a pfObject? What happens to the destructor of A then?

-- 
     ___/     |       ___/ Nicolas Gauvin	   e-mail: nicolas++at++cae.ca
    /       / |      /     Software Developper	   voice: (514) 341-2000 x2275
   /       /  |     __/    CAE Electronics Ltd.    fax:   (514) 340-5496
  /       ___ |    /	   8585 Cote De Liesse, P.O. Box 1800
_____/  _/   _| _____/     Saint-Laurent, Quebec, Canada, H4L-4X4

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:13 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.