Page 1 of 1

Region invalidated problem

Posted: Sun Jul 09, 2006 4:37 pm
by ShimaPong
In options -> search memory areas, if you choose "OFF" region then press "Shift + Delete Cheat", MAME crashes instead of "region invalidated".

Posted: Tue Jul 11, 2006 10:11 am
by ianpatt
I haven't had a chance to test this yet, but at around line 9179, change:

Code: Select all

static void InvalidateEntireRegion(SearchInfo * search, SearchRegion * region)
{
	memset(region->status, 0, region->length);

	search->numResults -= region->numResults;
	region->numResults = 0;
}
to

Code: Select all

static void InvalidateEntireRegion(SearchInfo * search, SearchRegion * region)
{
	if(!region->status) return;
	
	memset(region->status, 0, region->length);

	search->numResults -= region->numResults;
	region->numResults = 0;
}
I'll make a diff of all of these recent changes and submit it tomorrow night.

Posted: Wed Jul 12, 2006 4:17 pm
by ShimaPong
Thanks. I have confirmed that the crash problem is avoided with your fix.