fix assert about auto assigning ids by commenting out atom zapping code

This commit is contained in:
bienvenu%netscape.com 1999-08-29 16:50:48 +00:00
parent c52959b8f1
commit 4f0568a698
2 changed files with 20 additions and 16 deletions

View File

@ -105,15 +105,17 @@ morkCell::SetAtom(morkEnv* ev, morkAtom* ioAtom, morkPool* ioPool)
mCell_Atom = 0;
if ( oldAtom->CutCellUse(ev) == 0 )
{
if ( ioPool )
{
if ( oldAtom->IsBook() )
((morkBookAtom*) oldAtom)->CutBookAtomFromSpace(ev);
// this was zapping atoms still in use - comment out until davidmc
// can figure out a better fix.
// if ( ioPool )
// {
// if ( oldAtom->IsBook() )
// ((morkBookAtom*) oldAtom)->CutBookAtomFromSpace(ev);
ioPool->ZapAtom(ev, oldAtom);
}
else
ev->NilPointerError();
// ioPool->ZapAtom(ev, oldAtom);
// }
// else
// ev->NilPointerError();
}
}
if ( ioAtom )

View File

@ -105,15 +105,17 @@ morkCell::SetAtom(morkEnv* ev, morkAtom* ioAtom, morkPool* ioPool)
mCell_Atom = 0;
if ( oldAtom->CutCellUse(ev) == 0 )
{
if ( ioPool )
{
if ( oldAtom->IsBook() )
((morkBookAtom*) oldAtom)->CutBookAtomFromSpace(ev);
// this was zapping atoms still in use - comment out until davidmc
// can figure out a better fix.
// if ( ioPool )
// {
// if ( oldAtom->IsBook() )
// ((morkBookAtom*) oldAtom)->CutBookAtomFromSpace(ev);
ioPool->ZapAtom(ev, oldAtom);
}
else
ev->NilPointerError();
// ioPool->ZapAtom(ev, oldAtom);
// }
// else
// ev->NilPointerError();
}
}
if ( ioAtom )