Path: chuka.playstation.co.uk!news From: "pal" Newsgroups: scee.yaroze.freetalk.english Subject: Re: how to make my code crash-proof? Date: 22 Feb 2002 22:58:46 GMT Organization: PlayStation Net Yaroze (SCEE) Lines: 18 Message-ID: <01c1bbf2$390fc8a0$e194933e@pal-s-omnibook> References: <01c1ba1b$e134c5e0$4d8a933e@pal-s-omnibook> NNTP-Posting-Host: nas-cbv-2-133-176.dial.proxad.net X-Newsreader: Microsoft Internet News 4.70.1155 pal wrote in article <01c1ba1b$e134c5e0$4d8a933e@pal-s-omnibook>... > I can detect loops via vsync callback. ...but this is not good enough as within that callback i'm not allowed to do anything useful. Event exit() won't work. And as I dont know where the loop may be, I can't set a flag for treating the problem after returning from the callback. I guess I could replace the return address with that of my error-handling function (which may then exit properly or whatever), but I have no clue how (did not try any assembler on NY...). Any help? (PS sorry for being so noisy these days... I hope you'll agree it was worthwile with my next release ;) ) pal