|
Yeah I've checked that. I've set the MCU to scream at me if any the values are explicitly nulled by code.
To err is human. Fortune favors the monsters.
|
|
|
|
|
MCU -> Marvel Cinematic Universe?
I don't code in C++
Bond
Keep all things as simple as possible, but no simpler. -said someone, somewhere
|
|
|
|
|
Microcontroller unit.
To err is human. Fortune favors the monsters.
|
|
|
|
|
One variation of that, experienced by a co-worker of mine: When the program was run, it crashed fatally. When you started the debugger to step line by line, to see how far the execution went before crashing, no problem occurred.
The explanation (of course) turned out to be a wild pointer. This one pointed into code space, so an instruction was overwritten with something crazy. This one happened to be the first instruction for that source line. When you step line-by-line, the debugger replaces every first instruction on a line with a breakpoint instruction. The wild pointer then comes in, overwriting the code. But before the debugger attempts to run that code line, it reinserts the original instruction from the exe file, thereby repairing the damage done by the wild pointer. It took my co-worker some cranial massage to identify this bug.
|
|
|
|
|
Wow, that would be a hard one to figure out. When you finally do, you cane the platform designer for not making the code segment read-only.
|
|
|
|
|
Arrays and errors ... probably you are off by 1 somewhere.
Not trying to be funny but it has led me to many fixes.
"A little time, a little trouble, your better day"
Badfinger
|
|
|
|
|
Another possibility, if using subprojects: a #define is different for one subproject than another. The dll therefore had a different layout than the main project. Never want to repeat those days of debugging...
|
|
|
|
|
I ended up finding the problem sort of. It was in an unrelated piece of code. My data wasn't really getting reset to null, but I don't have a debugger on this, so I was dumping to the serial port. Apparently, I had logged something wrong, mislogged something or whatever to where it looked like my stuff was getting reset to null. It wasn't. The voices weren't getting mixed due to a bug in another piece of code.
To err is human. Fortune favors the monsters.
|
|
|
|
|
Congratulations on finding it!
|
|
|
|
|
He said "dream on."
I think that was really nice of him.
|
|
|
|
|
It's valid only if he sings it with a high pitched voice
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
|
|
were you not your own boss?
I recommend you to go to do a couple of psychiatric tests, just in case you have split personality...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
So you cured me of my schizophrenia, but where am I, now that I need me?
|
|
|
|
|
Yeah, I'm my own boss.
Doesn't mean I don't have to ask myself for permission and that I can't fire my ass for coming in late
For real though, I had to sign some contracts with myself, like an employment agreement (for De Belastingdienst, the Dutch IRA)
It says something like:
Employer: Sander Rossel
[Autograph]
Employee: Sander Rossel
[Autograph]
|
|
|
|
|
Sander Rossel wrote: For real though, I had to sign some contracts with myself, like an employment agreement (for De Belastingdienst, the Dutch IRA)
And I thought Italian fiscal legislation and pointless bureaucracy were bonkers.
GCS/GE d--(d) s-/+ a C+++ U+++ P-- L+@ E-- W+++ N+ o+ K- w+++ O? M-- V? PS+ PE Y+ PGP t+ 5? X R+++ tv-- b+(+++) DI+++ D++ G e++ h--- r+++ y+++* Weapons extension: ma- k++ F+2 X
|
|
|
|
|
den2k88 wrote: And I thought Italian fiscal legislation and pointless bureaucracy were bonkers. You would be surprised...
M.D.V.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
Rating helpful answers is nice, but saying thanks can be even nicer.
|
|
|
|
|
"Woke up this morning, you were on my mind" - Seekers
Yeah I herd in when it was new. Yes I am that old.
|
|
|
|
|
Yeah me too -- also recorded by We Five around 1965 (were they the same as The Seekers?) Nanci Griffith also does a very nice cover.
|
|
|
|
|
Craig Robbins wrote: Nanci Griffith also does a very nice cover. Indeed, she introduced me to a lot of great songwriters (including herself).
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
"I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
|
|
|
|
|
I am probably wrong about the Seekers. It may have been "We Five".
I will try to google it.
Old and tired.
|
|
|
|
|
You were right. It was We Five.
I'm losing it....
Mr. Tulip - Terry Pratchett
|
|
|
|
|
"Woke up this morning, got yourself a gun."
Intro to The Sopranos
|
|
|
|
|
"I didn't wake up this morning ..."
(from a blues singer's tombstone)
|
|
|
|