S
Steve
Hi All,
I am using XP on an industrial PC to control a few things around my farm.
I have written a VB program that worked perfectly on Win98 and 2k.
The program uses the registry to store a number of states and variables.
They are in the usual "Current User', Software, 'VB and VBA Programs' hive.
Weekly the PC resets via a simple power cycle (rather than shutdown).
It'll also power cycles based on a built in watchdog device. No shutdown
here either.
My problem is that when XP reboots the registry is reloaded to old values.
The 'old values' appear to be registry keys that were stored last time a
proper shut down or restart was implemented.
I can emulate this process manually. I have checked that the program is
writing to registry via regedit. Once I power cycle it the registry is back
to the 'old values' again.
I figure this has something to do with System Restore or Last Known Good
Condiguration.
I've not got much experience with this so need your help.
I have looked up how to "Turn Off System Restore" but my Control
Panel->System menu is not showing the system restore tab.
Why? I don't know. I thought I did a normal install of XP. Would it be
because I am running system from a compact flash card?
Are there settings to stop windows reloading the Registry? A registry
setting? or Command line program?
Is it another process? i.e. not system restore that is doing it?
Cheers,
Steve
I am using XP on an industrial PC to control a few things around my farm.
I have written a VB program that worked perfectly on Win98 and 2k.
The program uses the registry to store a number of states and variables.
They are in the usual "Current User', Software, 'VB and VBA Programs' hive.
Weekly the PC resets via a simple power cycle (rather than shutdown).
It'll also power cycles based on a built in watchdog device. No shutdown
here either.
My problem is that when XP reboots the registry is reloaded to old values.
The 'old values' appear to be registry keys that were stored last time a
proper shut down or restart was implemented.
I can emulate this process manually. I have checked that the program is
writing to registry via regedit. Once I power cycle it the registry is back
to the 'old values' again.
I figure this has something to do with System Restore or Last Known Good
Condiguration.
I've not got much experience with this so need your help.
I have looked up how to "Turn Off System Restore" but my Control
Panel->System menu is not showing the system restore tab.
Why? I don't know. I thought I did a normal install of XP. Would it be
because I am running system from a compact flash card?
Are there settings to stop windows reloading the Registry? A registry
setting? or Command line program?
Is it another process? i.e. not system restore that is doing it?
Cheers,
Steve