• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 178
  • Last Modified:

Windows State Info

Is there a tool available that saves windows state/environmental information to a text or xml file (so you can compare states at different times).  I have a windows app that I am trying to debug that works fine sometimes and does not work other times (with exactly the same input).  I'd like to save the state when it is working, save the state when it is not working, and then compare the two states to see what is different (other than the time).
0
dave4dl
Asked:
dave4dl
  • 3
  • 2
  • 2
  • +1
1 Solution
 
jkrCommented:
What kind of state information are you thinking about? From what you mentioned, this could range up to a whole memory dump for either Windows or your application.
0
 
itsmeandnobodyelseCommented:
Actually, I don't think that environment issues were the reason for your problems. If it would run at one computer and would not run at a second, environment could be a reason.

For your problem, it is more likely that there is a missing initialization. Then it works if incidently the initialization was valid.  If you got the wrong behavior in the debugger, you should be able to spot the reason without dumping the registry. Maybe you should explain your problem more specifically.

Regards, Alex
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
This is probably your best bet:

(ADPlus)  http://support.microsoft.com/default.aspx?scid=kb;en-us;286350
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
dave4dlAuthor Commented:
itsmeandnobodyelse,
There is no second computer involved.  It run on the same computer that it does not run on other times.

jkr,
I dont want to do a memory dump because i want to see the environment at one point compared to another.  This would be hard to do with a memory dump i think.  What i'd like to see captured is all the environmental variables and their values, the state of all network connections, the current services running, i guess all the current threads and the % of cpu they are using.  There are probably some other things that affect the environment that the app is running in that I am not thinking of but those would be a good start.

Dan7el,
Thanks for the link, ADPlus looks interesting, I will check it out.
0
 
jkrCommented:
You want a DrWatson log. That pretty much contains all the info you described.
0
 
itsmeandnobodyelseCommented:
>>>> It run on the same computer that it does not run on other times

Yes, that's why I think environment issues were *not* the reason cause they rareley change. Please explain what doesn't work and you will get better help instead of focussing on a specific reason that might be wrong.

Regards, Alex
0
 
dave4dlAuthor Commented:
My base problem doesnt actually involve C++.  I just posted this here because I though that c++ programmers were most likely to know of the best tool to do what I needed (if one exists).  I have a .NET web app running on IIS that stopped working (no errors, a couple pages of the app just then timed out).  It was not a network latency thing because some of the working pages accessed the same backend system without problems (pages normally load in a second and the timeout was 90 seconds).

My boss wants to know why it happened so he can be sure it won't happen again.

I decided it must be something about the environment that the application was running in because no code changed between when it wasnt working and when it was (some service not running, some environmental variable, some network connection setting, etc.).

btw, the OS is windows 2003
0
 
Daniel Van Der WerkenIndependent ConsultantCommented:
You should be able to enable a few logs... what does the IIS log show?  C:\WINDOWS\system32\Logfiles\W3SVC1

Check the Event Log

0
 
dave4dlAuthor Commented:
Of all the posts it looks like Dr Watson is the closest to the application I wanted even though it is not very close (I guess nobody makes that kind of utility).  Thanks for the posts everyone.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 2
  • 2
  • +1
Tackle projects and never again get stuck behind a technical roadblock.
Join Now