[info-performer] pfSharedArena

Date view Thread view Subject view Author view

From: Rajesh R (rajeshr++at++cair.res.in)
Date: 11/17/2005 02:09:45


I am developing Performer application using MFC. For assiging memory to
pfGeoSet instance, I am using memory obtained from pfSharedArena.

But I Found that during runtime, system is unable to allocate memory to
pfGeoSet
instance and moreover the application is getting crashed.

Here is the code.

        void *arena = pfGetSharedArena(); //Always returing NULL
        if(arena == NULL)
        {

                int test = 5;
                CString str;
                str.Format("%d",test);
                AfxMessageBox(str);
        }
        pfGeode* geode;
        pfGeoSet *gset;
        pfDCS *dcs1;
        pfMatrix mat;
        gset = pfdNewSphere(10,arena);
        geode->addGSet(gset);
        mat.makeTrans(10.0f,10.0f,10.0f);
        dcs1 = new pfDCS();
        dcs1->setMat(mat);
        dcs1->addChild(geode);
        m_pMainScene->addChild(dcs1);

What may be possible reason.

Any suggestions, Please.

Rajesh.R
Virtual Reality
Institute for Robotics and Virtual Reality
c/o Centre for AI and Robotics
Defence Research and Development Organization (DRDO)
Ministry of Defence
Bangalore - 1

Scientists are people of very dissimilar temperaments
doing different things in very different ways. Among
scientists are collectors, classifiers and compulsive
tidiers-up; many are detectives by temperament and many
are explorers; some are artists and others artisans.
There are poet-scientists and philosopher-scientists and
even a few mystics."


Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Nov 17 2005 - 02:38:33 PST