Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #25796
| Date | 2011-02-02 13:40 -0800 |
|---|---|
| From | Patricia Shanahan <pats@acm.org> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Changes in DB Value not Reflected in Output |
| References | <81636edc-d51b-44a9-a3ef-2150fb65f8db@u11g2000prk.googlegroups.com> <ii28hr$gj6$1@news.eternal-september.org> <0f1fa97c-d5ae-46fd-96ab-aa6b7c36e995@r16g2000yql.googlegroups.com> |
| Message-ID | <59CdnQ5Iuuv6UtTQnZ2dnUVZ_o6dnZ2d@earthlink.com> (permalink) |
On 2/1/2011 2:47 PM, John Smith wrote: ... > The obvious answer here is to "change the code such that > curve.setGeneratorParameters() will be run"; however I have seen this > same code being able > to print "N" (=false) and "N" (=false) in the GUI. When print to the > file the logic goes thorough the same code snippet, reading the same > value in the DB. > Why is "0" (=true) and "0" (=true") printed in the report file? I think you are asking the wrong question. Once you have more than one thread accessing data, the default is that there is at least some possibility of unreliable out-of-date data in one or more threads. There are several ways of ensuring solidly consistent data sharing, but it is unlikely to happen by accident. My question is "What aspects of the design of your program ensure that the thread doing the printing will always see the results of GUI changes to the fields in question?" I'm going to reiterate the advice to work on an SSCCE. Stripping down your code, removing everything you *think* is irrelevant to the problem, may well show what is wrong. If it does not, you will end up with something you can post and get more informed advice. Patricia
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Changes in DB Value not Reflected in Output John Smith <wleung7@gmail.com> - 2011-01-29 11:15 -0800 Re: Changes in DB Value not Reflected in Output Patricia Shanahan <pats@acm.org> - 2011-02-02 13:40 -0800 Re: Changes in DB Value not Reflected in Output John Smith <wleung7@gmail.com> - 2011-02-01 14:47 -0800 Re: Changes in DB Value not Reflected in Output Joshua Cranmer <Pidgeot18@verizon.invalid> - 2011-01-29 18:40 -0500 Re: Changes in DB Value not Reflected in Output Arne Vajhøj <arne@vajhoej.dk> - 2011-01-29 17:11 -0500
csiph-web