re: How do I prefetch data into my memory-mapped file?
@Danny Gabe was actually refering to how the blog's posts are put into a queue and the queue can be years in length. It is possible that this post itself was added a year or two ago. So it is possible...
View Articlere: The time I watched a total lunar eclipse from the top of a mountain
This will help: eclipse.gsfc.nasa.gov/solar.html
View Articlere: How do I prefetch data into my memory-mapped file?
The Unix world has madvise() which provides the kernel prefetch hints. Â But it's harder to handle SIGBUS than it is to use SEH to handle IN_PAGE_ERROR.
View Articlere: The time I watched a total lunar eclipse from the top of a mountain
We in the US will get to see a total solar eclipse August, 2017. I'm looking forward to it, as I can get to the path of totality without too much effort.
View Articlere: How do I prefetch data into my memory-mapped file?
Danny, you have to account for the time for the feature to be designed, specified, implemented, tested, and documented. Â Some manager approved this feature quite some time ago. Â Raymond's queue might...
View Articlere: Hazards of spelling autocorrection: defiance
I don't think it would be a good idea to auto-correct "manger" to "manager". Â On the other hand, I would support adding a red squiggly to words that are incredibly rare in business communication and...
View Articlere: The time I watched a total lunar eclipse from the top of a mountain
Uh, thanks for the (not so explicit) announcement of next week's partial eclipse. Further reading up on this, I discovered that next week additionally has a Venus transit, which will be the last one in...
View Articlere: How do I prefetch data into my memory-mapped file?
Since Raymond's post opens with a customer query, is it not more likely that the API was inspired by this real world requirement that had already occurred rather than a suggestion in a blog that wasn't...
View Articlere: How do I prefetch data into my memory-mapped file?
Why can't you ReadFile directly into the memory mapping? [How could that work? If the mapping is read-only, then you will get an access violation (you specified read-only memory as the output buffer)....
View Articlere: How do I prefetch data into my memory-mapped file?
Can't you ReadFile it into /dev/null? [And how would you do that? -Raymond]
View Articlere: If my window hosts multiple windowless ActiveX controls, which one do I...
@Marcel: Raymond didn't use the standard SVG, he used VML, which is one of the deprecated non-standard technologies IE6 became infamous for.
View Articlere: What happens if I call KillTimer with a NULL hwnd?
"somebody else's timer" -> A timer in *your* process. Not somebody else's timer.
View Articlere: If my window hosts multiple windowless ActiveX controls, which one do I...
VML was originally supposed to be standard and directly competed with SVG (which was missing many things back then). Result is known... So it wasn't nonstandard technology, but was made so by W3C.
View Articlere: How do I prefetch data into my memory-mapped file?
[...If the mapping is read-write, then you have a race condition (if the app tries to modify the memory at the same time the I/O manager is writing to it). -Raymond] Personally I would have thought the...
View Articlere: The time I watched a total lunar eclipse from the top of a mountain
We people in Hong Kong missed the solar eclipse three (or four?) weeks ago because the sky was cloudy...
View Articlere: How do I prefetch data into my memory-mapped file?
Could you please show us some robust exception handler and unwinding code sample to properly manage error conditions with memory-mapped files? Thanks.
View Articlere: Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!
I've only ever seen CS_OWNDC used for console windows, but at least they WM_PRINT ok
View Articlere: Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!
I've never had to work with them myself, but I do love the image of a bratty two-year-old kid mashing his broccoli. Add a glob of mashed potatoes flung from a spoon-shaped catapult and you've got a...
View Articlere: Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!
I didn't know that mashing broccoli had anything to do with programming, but now I know!
View Articlere: Why does PrintWindow hate CS_PARENTDC? Because EVERYBODY hates CS_PARENTDC!
I used to use CS_CLASSDC to set properties at setup time and leave them (things like persistent brushes that I didn't want to recreate in every WM_PAINT). These days I've learned I can cache the brush...
View Article