Discussion:
Problems with registry after long time?
(too old to reply)
Sonnich Jensen
2011-10-25 15:40:55 UTC
Permalink
Hi

We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.

It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written

Do anyone have any experience with this?

Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.

WBR
Sonnich
Jamie
2011-10-25 21:46:49 UTC
Permalink
Post by Sonnich Jensen
Hi
We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.
It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written
Do anyone have any experience with this?
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.
WBR
Sonnich
You must be in Admin mode and UAC configured to write to non-specific
user areas.

If you are ignoring the possible faults/errors that maybe getting
generated in code, then I guess you have some clean up to do.

Jamie
Sonnich Jensen
2011-10-26 07:33:35 UTC
Permalink
On Oct 26, 12:46 am, Jamie
Post by Jamie
Post by Sonnich Jensen
Hi
We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.
It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written
Do anyone have any experience with this?
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.
WBR
Sonnich
You must be in Admin mode and UAC configured to write to non-specific
user areas.
   If you are ignoring the possible faults/errors that maybe getting
generated in code, then I guess you have some clean up to do.
Jamie
The software can only be runned as admin. As I wrote the software
works for 2-3 days, then the error occurs.
Jamie
2011-10-26 22:24:20 UTC
Permalink
On Oct 26, 12:46 am, Jamie
Post by Jamie
Post by Sonnich Jensen
Hi
We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.
It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written
Do anyone have any experience with this?
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.
WBR
Sonnich
You must be in Admin mode and UAC configured to write to non-specific
user areas.
If you are ignoring the possible faults/errors that maybe getting
generated in code, then I guess you have some clean up to do.
Jamie
The software can only be runned as admin. As I wrote the software
works for 2-3 days, then the error occurs.
You must determine what the real error is? Are you getting denied access
to the registry or is your data not being what you think you wrote and
is causing a problem or missing data?

I would venture to say it is corrupted data.

You should perform some debugging when the error occurs with in your
app.


Jamie
Sonnich Jensen
2011-10-31 07:27:20 UTC
Permalink
On Oct 27, 12:24 am, Jamie
Post by Jamie
On Oct 26, 12:46 am, Jamie
Post by Jamie
Post by Sonnich Jensen
Hi
We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.
It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written
Do anyone have any experience with this?
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.
WBR
Sonnich
You must be in Admin mode and UAC configured to write to non-specific
user areas.
  If you are ignoring the possible faults/errors that maybe getting
generated in code, then I guess you have some clean up to do.
Jamie
The software can only be runned as admin. As I wrote the software
works for 2-3 days, then the error occurs.
You must determine what the real error is? Are you getting denied access
to the registry or is your data not being what you think you wrote and
is causing a problem or missing data?
  I would venture to say it is corrupted data.
  You should perform some debugging when the error occurs with in your
app.
Well, the error occurs usually after 2-3 days of work.... so my option
is that it happens when I am not there, otherwise if I sleep next to
the machine, and then it will happen when I sleep :)
Debugging is not really an option... logfiles are however...
Data is not corrupted, stopping and starting the thread makes it work
2-3 days again...

S
Jamie
2011-10-31 22:25:29 UTC
Permalink
On Oct 27, 12:24 am, Jamie
Post by Jamie
On Oct 26, 12:46 am, Jamie
Post by Jamie
Post by Sonnich Jensen
Hi
We have a problem with an older programme in D5, that when it has
worked for 2-3 days, it cannot read from the registry.... this could
be that it also cannot write.
It is probably operated this way, it works for 2-3 days, it moves
"parts around", and for that it passes on data, and every time it
stores in the registry. When starting (the programmes functions can be
started and stopped) it checks the registry, and then at some times we
do not get data.... now it might be because it was never written
Do anyone have any experience with this?
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option. And I dont know why they made
it so.
WBR
Sonnich
You must be in Admin mode and UAC configured to write to non-specific
user areas.
If you are ignoring the possible faults/errors that maybe getting
generated in code, then I guess you have some clean up to do.
Jamie
The software can only be runned as admin. As I wrote the software
works for 2-3 days, then the error occurs.
You must determine what the real error is? Are you getting denied access
to the registry or is your data not being what you think you wrote and
is causing a problem or missing data?
I would venture to say it is corrupted data.
You should perform some debugging when the error occurs with in your
app.
Well, the error occurs usually after 2-3 days of work.... so my option
is that it happens when I am not there, otherwise if I sleep next to
the machine, and then it will happen when I sleep :)
Debugging is not really an option... logfiles are however...
Data is not corrupted, stopping and starting the thread makes it work
2-3 days again...
S
Then it's not a registry problem, it's a thread issue..

Jamie

Sven P
2011-10-26 12:29:17 UTC
Permalink
Post by Sonnich Jensen
worked for 2-3 days, it cannot read from the registry....
The Windows version was, what? The error message precicely says what?
Post by Sonnich Jensen
this could be that it also cannot write.
And the error message in this case is what?
Post by Sonnich Jensen
now it might be because it was never written
You can always use standard RegEdit tool to check what was there
actually written in registry and what was not.
Post by Sonnich Jensen
Do anyone have any experience with this?
Everybody has some experience about Win Registry.
Post by Sonnich Jensen
Just in case: this is an existing programme, which I did not make....
so redesigning is not really an option.
So you have the D5 source code, but you are not goint to touch it at
all? In that case THIS is not the right group for your question.

You could then ask this registry related question in some general
windows\applications group. And also contact the original sofware
developer who could maybe fix the problem.

IF you are going to try to fix it, you first have to start checking to
which registry hives does the app read and write. Then check and see
what was actually written, and at which phase.

Check if the problem has something to do with (Vista/Win7) strict UAC
control. If it was, maybe you have to use some other registry hives
instead, that have less restrictions and safety control.

If these do not bring the answer, then, well.. just continue scratching
your head. This is part of the usual, daily software developer burden.

Yet if you decided that you not going to touch the code, then you are
lucky as that bug beast will not bite you this time at all.<g>
SP
Loading...