UPDATE ...
OK - I had some unrelated stuff come up yesterday that
interrupted me and diverted my attention away from this problem,
and I didn't have much time to focus on it. I'm still trying stuff,
and my intention was to make a follow-up post with
the results that I got with everything that I've tried.
That process is still on-going - I've not yet exhausted all of my
alternatives. I made the initial post - starting this thread
- in the hopes that someone might have had a similar experience
to the one that I'm having - or have encountered this problem
before with someone else - and could give me a sweet and simple
explanation - along with a viable solution. I guess I was
hoping against hope on that one - but it doesn't hurt to ask.
First of all, I want to thank all of those who responded
- as always, I appreciate your input.
I want to thank those of you who corrected me on my terminology:
I meant integer *FIELDS* - not properties
- and I'm a big, fat, stoopid, poopoo-head for that gaffe
- I'm red-faced with embarrassment. <cringe>
With the time that I've spent on this, I've tried all kinds
of different stuff - and all kinds of strange things
have been happening.
For one, I tried creating a new FIELD in the class
- calling it que2_ndx
- leaving the old one in its place (que_ndx)
- and just assigning to it a value of 0
- and the same weird stuff is happening to the new FIELD
- to que2_ndx
- and the old FIELD (que_ndx) is untouched.
The one common denominator is that this particular indexing field
(que2_ndx) is used in a GET accessor - though that accessor
is not used in the method where the problem is manifesting itself.
I altered that GET accessor - tried commenting out a
conditional IF that makes reference to the indexing field
(which at first was called que_ndx but is now called que2_ndx)
- an IF statement that compares the values of the two:
// if (que2_ndx < stk_ndx)
que2_ndx++;
... and things got even MORE bizarre:
After compiling - with the conditional IF commented out
- instead of the indexing field que2_ndx being incremented
afer the execution of the instruction to increment the
indexing variable that the statement SHOULD increment (stk_ndx)
- the que2_ndx field now gets incremented after the execution
of a system function call that adds an object to an array list
- which is positioned BEFORE the instruction that increments
the stk_ndx.
I'm beginning to think that there's some kind of a glitch
in the accessor mechanism, and I'm considering the alternative
of rewriting the accessors - turning them into methods
- and eliminating the use of accessors altogether in the
class where I'm having this problem.
There is still some more stuff that I'm going to try
before this, however.
I'm not using visual studio in any of this,
so it isn't a factor.
I tried installing ASP.NET and IIS on another box,
ran this critter on that other system,
and I got the same behavior
- so this problem isn't unique to my particular system.
I'll post back later with my results.
THANKS AGAIN!
####################################################################
Hi,
I've got a pair of int properties in a class.
The properties in question are indexing values
- but that's not relevant to my problem
- or it's just symptomatic ... sort of.
They are declared as follows:
public class obj_set_class
{
private int que_ndx;
private int stk_ndx;
.
.
.
}
It's pretty straight-forward - nothing out of the ordinary.
NOW for the problem ...
I was chasing after a bug, and, while I was stepping through
the method that uses one of those int properties (stk_ndx),
I execute a statement that increments that int property,
and the OTHER int property (que_ndx) gets incremented as well.
Again, it's pretty straight-forward:
stk_ndx += 1;
After this statement is executed, que_ndx gets incremented,
as well as stk_ndx.
My only speculation is that both int symbols are being
given the same address - which would be bizarre.
Has anyone got any idea as to what is causing this?
... and how to fix it?
THANKS!
- wASP
- wASP