Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I think I've stepped into the twilight zone today. I'm running XP with the latest service packs and updates in a VM. It contains two administrative user accounts both without passwords. I log in as User 1 and start my Win32/C++ application. The window appears and all is well with the world. I then log off without first closing my app. Yes, I used "log off" not "switch user"

I then log in as User 2 and my application is still running and I see it on the User 2 desktop. I can even interact with it - it appears to be functioning normally. And task manager shows it running as User 1.

Any ideas which might be going on here? Other applications (like notepad) don't exhibit this issue, yet mine does. Seems to me I'm doing something wrong in my code, but it really is a rather standard win32/c++ app. Perhaps I'm not processing some shutdown message properly? I'm sorry I can't give more specifics right now. I'm really hoping for some clue to spark further research.


migration rejected from Apr 19 '15 at 17:47

This question came from our site for professional and enthusiast programmers. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

closed as off-topic by masegaloeh, mdpc, Katherine Villyard, Ward, Hyppy Apr 19 '15 at 17:47

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions on Server Fault must be about managing information technology systems in a business environment. Home and end-user computing questions may be asked on Super User, and questions about development, testing and development tools may be asked on Stack Overflow." – masegaloeh, Katherine Villyard, Ward, Hyppy
If this question can be reworded to fit the rules in the help center, please edit the question.

I know this just got moved from SO. But as it is an issue with an application he has written, shouldn't it be on SO?! – pipTheGeek Jul 15 '09 at 17:30
And this is why we can't just let 5 random people say it goes on site X without some moderator involvement, either with site X accepting the question, the first site's moderators verifying the move, or both. – Thomas Owens Jul 15 '09 at 17:36
I would agree that this is a SO question. I have a feeling the problem has something to do with the the desktop that the application is being launched into. The process for some reason is not associated with the logged on desktop. – zdan Jul 15 '09 at 18:44
I think this is an edge case between StackOverflow and Serverfault. I would ask same question on SO again emphasizing the coding aspect "What am I doing wrong in my program..." – splattne Jul 15 '09 at 18:56

Id open task manager and enable the "sessionID" column and double check the session id of the process.


I'd be inclined to say that this is a coding problem. I can't give you any specific pointers, but perhaps there's an MS "best practices for making apps share userland nicely" article on technet?


Can you drop something like a text box on your form, and type some characters into it at runtime?

It has to be a 2nd instance.

Re-ask this on Stackoverflow, and link to it here so i can find it.


Not the answer you're looking for? Browse other questions tagged or ask your own question.