>> Have you checked that read actually succeeds, because the value you are printing is 0xCCCCCCCC, which is MS VS standard fill pattern for "uninitialized stack space", so it appears that read isn't...