Quantcast
Channel: The Old New Thing
Browsing all 24428 articles
Browse latest View live
↧

Image may be NSFW.
Clik here to view.

re: I thought I was so clever, salvaging an old floppy drive from a dead...

Typo:  A 5 1/4 inch floppy holds about 320 KB (not MB), so it is not even close to half a CD (700 MB). [A HD floppy was 1.2MB. A moving box can hold about 40 boxes of floppies, each box of floppies...

View Article


Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

One of the comments over in the "Clean-up functions can't fail because..." post says to tell the user when something bad happens, since maybe he can do something.  Such as, "Out of memory?  Close some...

View Article


Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

@ChrisR: It isn't the DLL exiting the process (if it were, it could do this cleanup BEFORE calling ExitProcess). Note in the stack trace, you have two modules which are not part of Windows: the main...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

[And when ROLLBACK fails? -Raymond] Same basic story as when ROLLBACK fails on SQL Server and about as unlikely. [Well, this library was trying to do a rollback (canceling the stuff it had started) and...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

I suppose I've opened a bit of a can of worms, but I'm interested in whether there's more to the story.  For example, how did litware.dll got loaded?  If contoso.exe called...

View Article


Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

I guess my point was lost. I avoid the problem of trying a rollback from a weird state largely by doing the rollback at startup rather than shutdown. [I guess I don't understand your point, then. If...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

[I guess I don't understand your point, then. If you roll back at startup, then your service is unavailable for the entire lifetime of the process! -Raymond] Easy. One creates checkpoints (committed...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

@Ben Voight:  Indeed I saw that.  I was illustrating to Joshua and Cesar that their suggestions would not work, since the DLL does not (and should not) control process shutdown.

View Article


Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

I see.  So Litware assumed that their work items would complete before the process exited, and did not provide any way for Contoso to wait on the awesome thing being completed, or to abort doing the...

View Article


Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

Hi Raymond, I'm ordinarily a .NET programmer who doesn't normally have to deal with DllMain or any of that sort of thing, so please correct me if I'm wrong, but it seems that the best way of doing this...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

The MSDN article doesn't seem to suggest what happens if you try to close the threadpool twice, does this also crash?

View Article

Image may be NSFW.
Clik here to view.

re: Shortcut properties are in the shortcut, so if they can read the...

@xpclient Maybe next time you don't understand something, first think, then search and then maybe annoy us all with some conspiracy theories? Obviously that would at least halve your post count, but...

View Article

Image may be NSFW.
Clik here to view.

re: A process shutdown puzzle, Episode 2

@djhayman: Unfortunately "best" is open to many different interpretations, and some programmers think that it is best for the people who use their library not to worry about initialisation and cleanup,...

View Article


Image may be NSFW.
Clik here to view.

re: I thought I was so clever, salvaging an old floppy drive from a dead...

I went back and re-read the oldest computer story again. Just like George kept the Frogger game going when he tried to push it across the street!

View Article

Image may be NSFW.
Clik here to view.

re: Shortcut properties are in the shortcut, so if they can read the...

@James Schend, Kemp and voo, three clueless morons and counting who haven't the faintest idea of what's the discussion is about between Raymond and me. There's no question of "not understanding" and...

View Article


Image may be NSFW.
Clik here to view.

re: Why is there sometimes a long delay between pressing a hotkey for a...

I would also be interested in knowing if there's any way to force it just to always launch the shortcut, since for me when I press the shortcut key twice I really want it to run twice -- like opening...

View Article

Image may be NSFW.
Clik here to view.

re: Why is there sometimes a long delay between pressing a hotkey for a...

Is a full fledged window manager a requirement for using the keyboard now? Why the need for apps to register keyboard shortcuts, when USER not keeping track of it anyway? [I don't understand the...

View Article


Image may be NSFW.
Clik here to view.

re: Why is there sometimes a long delay between pressing a hotkey for a...

>>I'm sure it's too late to change now, but why didn't explorer originally store the hotkey information internally? >[Because RegisterHotKey is a window manager feature, not an Explorer...

View Article

Image may be NSFW.
Clik here to view.

re: What happened to the Summary information created on Windows 2000 and...

"With older versions of OS X, if you inserted a flash-based storage device, it'd immediately try and s**t all over it for no known reason." Well, Vista (and probably Win7?) will siht, too. It will try...

View Article

Image may be NSFW.
Clik here to view.

re: Why is there sometimes a long delay between pressing a hotkey for a...

@henke37 > And now for the million dollar question, how to hunt down the offending process? You already know the answer. Write a program that mimics Explorer's behaviour and note which processes...

View Article
Browsing all 24428 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>