Steve Baker (sbaker++at++link.com)
Thu, 26 Feb 1998 11:15:13 -0600 (CST)
> Hi pfPeople,
>
> This one should be easy.
> In a member function from a class I derived from a
> pfGeoSet, a call to free() invokes pfFree(), and I
> get an error message
>
> PF Warning/Usage: pfMemory::free() can't free()
> non-pfMemory data
>
> I would like to call free(), not pfFree().
I guess that 'free' is a member function of pfGeoSet - so
you'll need to call '::free' to get the 'global' free instead
of the local one.
IMHO: You shouldn't use functions in the 'malloc/calloc/realloc/free'
family in a C++ program anyway. You should always use new and delete
- anything else is v.dangerous.
Steve Baker 817-619-8776 (Vox/Vox-Mail)
Raytheon Systems Inc. 817-619-4028 (Fax)
2200 Arlington Downs Road SBaker++at++link.com (eMail)
Arlington, Texas. TX 76005-6171 SJBaker1++at++airmail.net (Personal eMail)
http://www.hti.com http://web2.airmail.net/sjbaker1 (personal)
** Beware of Geeks bearing GIF's. **
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:53 PDT