Re: pfLayer does not set it's type field

New Message Reply Date view Thread view Subject view Author view

Sharon Clay (src++at++rose.asd.sgi.com)
Thu, 5 Jun 1997 22:46:29 -0700


+>---- On Jun 5, 10:13pm, Mario Veraart wrote:
> Subject: pfLayer does not set it's type field
->
->Hello Performer users,
->
->I just stumbled during debugging at the following bug in the performer 2.0
->libs. When I try to so the following line
->
-> if (node->isOfType(pfLayer::getClassType))
-> {
-> }
->and node IS of type Layer, the debugger signals that the field
-> pfLayer::type is NULL and so the test can't be executed, see pfMemory.h.

It works fine - you just have a typo. getClassType() is a method you
need to call:

pfLayer *layer = new pfLayer;
if (layer->isOfType(pfLayer::getClassType()))
    pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"LAYER");
else
    pfNotify(PFNFY_NOTICE,PFNFY_PRINT,"????");

src.

-- 
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com  (415) 933 - 1002  FAX: (415) 965 - 2658  MS 8U-590
-----{-----{---++at++   -----{----{---++at++   -----{----{---++at++   -----{----{---++at++
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.com
   SGI DevForum 97 info:  http://www.sgi.com/Forum97/

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:55:24 PDT

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