3 ms·
Oh I'm not so sure about Microsoft doing that. Probably everybody has heard about this story now [1], but in case anyone hasn't: > I first heard about this fr
by yongjik 8y ago
Oh I'm not so sure about Microsoft doing that. Probably everybody has heard about this story now [1], but in case anyone hasn't:
> I first heard about this from one of the developers of the hit game SimCity, who told me that there was a critical bug in his application: it used memory right after freeing it, a major no-no that happened to work OK on DOS but would not work under Windows where memory that is freed is likely to be snatched up by another running application right away. The testers on the Windows team were going through various popular applications, testing them to make sure they worked OK, but SimCity kept crashing. They reported this to the Windows developers, who disassembled SimCity, stepped through it in a debugger, found the bug, and added special code that checked if SimCity was running, and if it did, ran the memory allocator in a special mode in which you could still use memory after freeing it.
Well, maybe Microsoft of 2019 might behave differently, after spending decades in desktop OS market domination, but what's more relevant is how they got there in the first place.
[1] https://www.joelonsoftware.com/2004/06/13/how-microsoft-lost-the-api-war/ https://www.joelonsoftware.com/2004/06/13/how-microsoft-lost...
- hutzlibu 8y agoI had not heard of it yet, so thanks. And well, makes sense, different priorities ... https://xkcd.com/619/ https://xkcd.com/619/