Page 1 of 1

UOX3 crash caught in MSVC

Posted: Sun Feb 26, 2006 3:47 pm
by Xuri
UOX::findMulti(short 1409, short 1482, char 15, unsigned char 0) line 302 + 34 bytes
UOX::CChar::SetLocation(short 1409, short 1482, char 15, unsigned char 0) line 1300 + 23 bytes
UOX::CChar::SetLocation(short 1409, short 1482, char 15) line 1307
UOX::CSpawnRegion::RegionSpawnChar() line 463
UOX::CSpawnRegion::doRegionSpawn(unsigned short & 0, unsigned short & 15) line 431 + 8 bytes
UOX::CWorldMain::CheckAutoTimers() line 1249
main(int 1, char * * 0x003d2ca0) line 2823
mainCRTStartup() line 206 + 25 bytes
KERNEL32! 7c816d4f()

Posted: Sun Feb 26, 2006 4:04 pm
by Grimson
So it crashes here:

Code: Select all

if( !ValidateObject( itemCheck ) )
	continue;
[color=yellow]if( itemCheck->GetID( 1 ) >= 0x40 && itemCheck->CanBeObjType( OT_MULTI ) )[/color]
{
Hmmm, can the item get deleted between the ValidateObject check and the next if-statement?

Posted: Sun Feb 26, 2006 6:47 pm
by giwo
Looks to me like somehow an item that was deleted earlier didn't get deleted from the MapRegion.

Posted: Sun Feb 26, 2006 7:04 pm
by giwo
I may have tracked down the issue... there was some wierdness with how we loaded items, may allow items to be in mapregions that should not.