[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] refresh crashes fix?

i was playing around with some Pen based guis the last few days and apart from a weird behaviour (no error messages printed, but app - hang), i'm getting bad crashes, when trying to refresh a non existing SCUserView.
Checking for NULL seems to help:

int prSCView_Refresh(struct VMGlobals *g, int numArgsPushed);
int prSCView_Refresh(struct VMGlobals *g, int numArgsPushed)
	if (!g->canCallOS) return errCantCallOS;

	SCView *view = (SCView*)(g->sp)[0].uo->slots[0].ui;
	if(!view) 	return errNone;
	return errNone;

any objection to commit this?


sc-dev mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/