Out of the bins errors
by Davide Archetti · in Torque Game Engine · 10/24/2004 (4:35 am) · 4 replies
I saw this error when exiting the game in the dos window
"Error, a %s (%x) isn't properly out of the bins!"
This error is written in the Container class destructor, but it is generated by a missing deleteWhenEmpty function call in the Explosion::explode function, it was present in the previous HEAD version. The missing line is in bold
"Error, a %s (%x) isn't properly out of the bins!"
This error is written in the Container class destructor, but it is generated by a missing deleteWhenEmpty function call in the Explosion::explode function, it was present in the previous HEAD version. The missing line is in bold
bool Explosion::explode()
{
mActive = true;
...
if (mDataBlock->particleEmitter) {
ParticleEmitter* emitter = new ParticleEmitter;
emitter->setDataBlock(mDataBlock->particleEmitter);
emitter->registerObject();
emitter->emitParticles(getPosition(), mInitialNormal, mDataBlock->particleRadius,
Point3F(0, 0, 0), U32(mDataBlock->particleDensity * mFade));
[b]emitter->deleteWhenEmpty();[/b]
}
...
}
#2
11/19/2004 (7:08 am)
Ben, is this on your TODO list? It's a valuable bugfix. I recently had confusion with this error also, becuase I was using MissionCleanup and everything... but still had this error. When I added this line, the command window was clean.
#3
11/19/2004 (8:18 pm)
Yup, we have this in trunk! Thanks for bringing it up.
#4
11/19/2004 (10:41 pm)
Excellent work Smithers, er, Garney, er, GarageGames. Yeah, keep it up.
Torque Owner Roelf "TheRoDent" Diedericks