Showing results for February 4, 2004 - The Old New Thing

Feb 4, 2004
Post comments count0
Post likes count0

Answers to exercises – mismatching new/delete

Raymond Chen
Raymond Chen

Answers to yesterday's exercises: What happens if you allocate with scalar "new" and free with vector "delete[]"? The scalar "new" will allocate a single object with no hidden counter. The vector "delete[]" will look for the hidden counter, which isn't there, so it will either crash (accessing nonexistent memory) or grab a random number and a...

Code
Feb 4, 2004
Post comments count0
Post likes count0

The Glass Engine and Ishkur's Guide to Electronic Music

Raymond Chen
Raymond Chen

The Glass Engine is an interactive guide to the music of Philip Glass, organized by... um... at least they're organized. By something. Bizarre yet oddly compelling. (Perhaps if we ask nicely, we can get Marc Miller to tell the story of the time he actually met Philip Glass...) In a similar vein, a friend of mine directed me to Ishkur's Guide to Ele...

Non-Computer