[FIXED] UOX3 crash caught in MSVC

Here we stuff all the bugs we've managed to squash/squish/squelch.
Locked
User avatar
Xuri
Site Admin
Posts: 3704
Joined: Mon Jun 02, 2003 9:11 am
Location: Norway
Has thanked: 48 times
Been thanked: 8 times
Contact:

UOX3 crash caught in MSVC

Post 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()
-= Ho Eyo He Hum =-
Grimson
Developer
Posts: 802
Joined: Sat Jun 04, 2005 1:52 am
Location: Germany
Has thanked: 0
Been thanked: 0

Post 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?
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post by giwo »

Looks to me like somehow an item that was deleted earlier didn't get deleted from the MapRegion.
Scott
giwo
Developer
Posts: 1780
Joined: Fri Jun 18, 2004 4:17 pm
Location: California
Has thanked: 0
Been thanked: 0

Post 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.
Scott
Locked