История от
joelonsoftware:
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.
Что можно сказать по этому поводу? Тяжела и неказиста жизнь простого программиста...
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.
Что можно сказать по этому поводу? Тяжела и неказиста жизнь простого программиста...
no subject
no subject
Еще бы ее добыть
no subject
историю уже слышал, но мне почему-то казалась, что связана она была с украденными исходниками и, мол, там, в коде, это нашли.
странно. наверное, что-то с памятью =)
no subject
no subject
поддерживать чужие баги - сама идея выглядит достаточно странно.
no subject
no subject
no subject
no subject
ya by na meste simcity naexal by na nix :)))
no subject