Re: DateTime resetting

2022-10-11 Thread Joel via Digitalmars-d-learn
On Tuesday, 11 October 2022 at 23:28:50 UTC, Adam D Ruppe wrote: I'm just eyeballing the code, is it the g_dateTimeCursor you're concerned about? That's the only one I really see there. [...] Yes! :-D getControl was the issue, I've used ref on its return value now. Thanks so much for your he

Re: DateTime resetting

2022-10-11 Thread Adam D Ruppe via Digitalmars-d-learn
I'm just eyeballing the code, is it the g_dateTimeCursor you're concerned about? That's the only one I really see there. A few things that might explain it: 1) as a global variable, it is thread local. I don't see any use of threads in here, but if you do, each one has a separate copy and oth

Re: DateTime resetting

2022-10-11 Thread Joel via Digitalmars-d-learn
On Tuesday, 11 October 2022 at 22:21:35 UTC, Adam D Ruppe wrote: On Tuesday, 11 October 2022 at 22:09:34 UTC, Joel wrote: I've been working on a diary program (ChronoLog). but lately my date and time variable keeps resetting. I've spent hours trying to fix it. I'm wondering if there's a known i

Re: DateTime resetting

2022-10-11 Thread Adam D Ruppe via Digitalmars-d-learn
On Tuesday, 11 October 2022 at 22:09:34 UTC, Joel wrote: I've been working on a diary program (ChronoLog). but lately my date and time variable keeps resetting. I've spent hours trying to fix it. I'm wondering if there's a known issue. An ordinary DateTime variable? Those are pretty simple and

DateTime resetting

2022-10-11 Thread Joel via Digitalmars-d-learn
I've been working on a diary program (ChronoLog). but lately my date and time variable keeps resetting. I've spent hours trying to fix it. I'm wondering if there's a known issue.