2 ms·
See also https://news.ycombinator.com/item?id=2281932 https://news.ycombinator.com/item?id=2281932 > The original version of Sim City was written for windows 3
by eru 6y ago
See also https://news.ycombinator.com/item?id=2281932 https://news.ycombinator.com/item?id=2281932
> The original version of Sim City was written for windows 3.x and included a bug that read memory that had been freed to the system. It worked in windows 3.x, even though it shouldn't, because that particular range of memory wasn't being used for anything else until the program was terminated.
> In beta versions of windows 95 Sim City didn't work because the operating system allocated memory differently, and Sim City would crash as expected because of the bug in the program. Amazingly, in the final version of Win95 the original Sim City worked. Microsoft engineers had actually tested backwards compatibility with Sim city, located the bug, and worked around it in their sourcecode.
- simonh 6y agoWorkarounds like that which detect a particular app running and enable a special mode are called a Shim, Microsoft created hundreds of them to ensure compatibility in new OS versions with popular apps.