|
raddevus wrote: Then you'll argue and say, "but, Ive read 4 books on the subject"
Couldn't I just lie and say instead that I have watched 4 youtube videos?
|
|
|
|
|
Eloquent, imaginative ... a train of thought with all the logic in the loose caboose. !
«The mind is not a vessel to be filled but a fire to be kindled» Plutarch
|
|
|
|
|
raddevus wrote: And since the minority is aka "The Fringe" your ideas will be considered garbage. Like Fringe (TV Series) (2008) - FilmAffinity[^]? (Very interesting serie the first 2 seasons... afterwards it started to go a bit over the fence)
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.
|
|
|
|
|
And don’t forget the proven maxim:
Underperformers always over estimate their ability.
Overperformers always under estimate their ability.
|
|
|
|
|
One hundred - C (Roman numeral)
or no piles - as is
arranged - anagram of the above: NECROPOLIS : where the dead rest
So I guess I'm up again tomorrow.
|
|
|
|
|
Afraid so - I would have taken it, but Herself needed help and I missed the four hour window.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
No problem, and family first always.
|
|
|
|
|
Good clue Richard and you are sort of Welsh
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
|
Croeso
In a closed society where everybody's guilty, the only crime is getting caught. In a world of thieves, the only final sin is stupidity. - Hunter S Thompson - RIP
|
|
|
|
|
Richard MacCutchan wrote: or no piles - as is Can't figure out this part...
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Sorry, lazy English. It just means take the words "or no piles" as they are written. So combining those with the C (for a hundred), and (re)arranging them all gets the answer.
Makes sense?
|
|
|
|
|
Yes, got it... thanks
Happiness will never come to those who fail to appreciate what they already have. -Anon
|
|
|
|
|
Been trying to find this "bug" for 3+ years. It lives in a critical piece of code for a specific oem. One of the first rules of debugging is to determine if you can repeat the behavior, etc. It's very easy to go off shotgunning, etc. so step 1 is to answer, "What changed?"
What works (we're going back to 2009): WinCE 5.0, EVC++, embedded IE browser in CE 5.0, activeX controls, javascript and vbscript.
What changed: OS to WEC7, VS2008, a new half baked embedded IE browser in WEC7, minor edits to the code to make it happy with VS2008, and new hardware.
Beginning to see the problem? what could go wrong? So, just about everything changed except the application. Where my bug lurks.
So, last week I was taking another stab at obtaining data as to the problem (the oem supplied web page doesn't run, the activeX controls don't behave). Started up the debugger, application hung - same behavior as before. Shut it down, added some logging messages, started it up and the damn thing worked. First time I had seen this, and we're now into divine intervention mode. Yeah, I know, you can call it blind luck.
I have an initialization problem.
In about an hour, I tracked down the "bug" to lack of initialization of a pointer in an activeX control. EVC++ and CE 5.0 had no issue with the code and always behaved. WEC7 had trash in the pointer (why we initialize things). It was a 15 year old cut/paste oversight.
Yeah me. Learning points: get a lint tool and use it. Going back to 2005, running mfc applications caused lint tools to explode with complaints, so we never got serious about it. Going to have to dust the issue off.
Here's the missing line of code: "m_pMainAppHandle = NULL;"
Sometimes I love my job, sometimes I want to cry. Just get in the habit of watching for uninitialized member variables. Simple issues like this are caught by source code tools, but this is something that should always be done.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
modified 28-Jun-23 10:34am.
|
|
|
|
|
Erm ... are you sure?
m_pMainAppHandle == NULL; Is a comparison, it shouldn't change a thing ... if it does, there is something really nasty going on your code!
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Oops, corrected.
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Paul, you are definitivelly nitpicky and evil...
...
...
...
I love it
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.
|
|
|
|
|
|
The above statement with "==", not the original poster's "=",
makes me look all over for your lol emoji.
|
|
|
|
|
There isn't one: charlieg: Oops, corrected.
"I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
"Common sense is so rare these days, it should be classified as a super power" - Random T-shirt
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
How can this test fix initialization...?
Never mind, I just saw OG has mentioned this already.
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
sorry, I double typed the equals (was thinking of the logic I was looking at).
Charlie Gilley
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
Has never been more appropriate.
|
|
|
|
|
Anytime there's an "else" I don't have time to think about (then and there), I add an Debug.Assert(false). Works better than trying to keep notes.
"Before entering on an understanding, I have meditated for a long time, and have foreseen what might happen. It is not genius which reveals to me suddenly, secretly, what I have to say or to do in a circumstance unexpected by other people; it is reflection, it is meditation." - Napoleon I
|
|
|
|
|
I agree.
I just fixed a bug in SEC (somebody else’s code) where they loaded an override parameter, printed a warning if it was empty, then proceeded to use it even if it was empty.
WTF?
Corrected code added an else and covered both if and else clauses.
|
|
|
|
|
charlieg wrote: added some logging messages, started it up and the damn thing worked...EVC++
So one immediately knows it is a memory problem. Classic behavior. The new code changes the execution flow so the memory problem moves and no longer causes the initial problem. Very likely overwrite or underwrite (but overwrites tend to occur more often.)
charlieg wrote: get a lint tool and use it
Memory check libraries with sufficient real data testing finds more problems.
|
|
|
|