Liu Xiaoyan (liuxy++at++nsrc.nus.sg)
Tue, 24 Mar 1998 19:00:39 +0800
I allocated a pfFog from shared memory like below, but the program
crashes
at the "new" operation.
main()
{
.......
pfInit();
pfFog *fog = new(pfGetSharedArena()) pfFog;
// pfFog *fog = (pfFog *)pfMalloc(sizeof(pfFog),pfGetSharedArena()); //
doesn't work either
fog->setColor(1,0,1);
fog->setFogType(PFFOG_VTX_EXP);
fog->apply();
pfEnable(PFEN_FOG);
pfConfig(); .......
}
The warning messages are:
Process 2177 (pfnav) started
PF Notice(2): level FP Debug (6) set by environment
variable PFNFYLEVEL
PF Debug/Resource: pfInitArenas() Allocated 262144KB:
0x24080000 - 0x34080000
PF Debug/Resource: pfDataPool::create() - pid 2177 - 16384
bytes at 0x34080000 suc
ceeded for /usr/tmp/pfClock.2177.pfdpool
PF Debug: Using CYCLECNTR clock (32 bits at
0xaddac100)
PF Debug: Clock is 32 bits with 800.00ns
resolution.
PF Debug: Clock wrap handler runs every 1.00000
seconds.
PF Debug/Usage(2): pfMemory::realloc() can't realloc from
NULL data
PF Fatal/SysErr: _pfDirtCheck: pfRealloc of 0 bytes
returned NULL.
Process 2177 (pfnav) terminated
I'm using Performer2.1 on Onyx2IR. What's going wrong?
Thanks,
Liu Xiaoyan
***********************************************************************
Liu Xiaoyan National Supercomputing Research Center
Data Visualization Group http://www.nsrc.nus.edu.sg Tel:(65)7709267
***********************************************************************
=======================================================================
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:57:05 PDT