Click here to Skip to main content
15,885,683 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: CCC 28-06-2023 solution Pin
Richard MacCutchan28-Jun-23 3:46
mveRichard MacCutchan28-Jun-23 3:46 
GeneralRe: CCC 28-06-2023 solution Pin
pkfox28-Jun-23 3:57
professionalpkfox28-Jun-23 3:57 
GeneralRe: CCC 28-06-2023 solution Pin
Richard MacCutchan28-Jun-23 4:06
mveRichard MacCutchan28-Jun-23 4:06 
GeneralRe: CCC 28-06-2023 solution Pin
pkfox28-Jun-23 4:34
professionalpkfox28-Jun-23 4:34 
GeneralRe: CCC 28-06-2023 solution Pin
ChandraRam28-Jun-23 5:46
ChandraRam28-Jun-23 5:46 
GeneralRe: CCC 28-06-2023 solution Pin
Richard MacCutchan28-Jun-23 5:51
mveRichard MacCutchan28-Jun-23 5:51 
GeneralRe: CCC 28-06-2023 solution Pin
ChandraRam28-Jun-23 5:59
ChandraRam28-Jun-23 5:59 
GeneralBugs, the art of finding them and divine intervention Pin
charlieg28-Jun-23 2:05
charlieg28-Jun-23 2:05 
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? Smile | :) 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. Smile | :)

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.

GeneralRe: Bugs, the art of finding them and divine intervention Pin
OriginalGriff28-Jun-23 2:25
mveOriginalGriff28-Jun-23 2:25 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg28-Jun-23 4:34
charlieg28-Jun-23 4:34 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Nelek28-Jun-23 7:16
protectorNelek28-Jun-23 7:16 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Slacker00728-Jun-23 7:24
professionalSlacker00728-Jun-23 7:24 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
mischasan29-Jun-23 6:48
mischasan29-Jun-23 6:48 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
OriginalGriff29-Jun-23 19:30
mveOriginalGriff29-Jun-23 19:30 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
  Forogar  28-Jun-23 3:59
professional  Forogar  28-Jun-23 3:59 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg28-Jun-23 4:35
charlieg28-Jun-23 4:35 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Gerry Schmitz28-Jun-23 4:29
mveGerry Schmitz28-Jun-23 4:29 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
englebart30-Jun-23 7:18
professionalenglebart30-Jun-23 7:18 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
jschell28-Jun-23 6:22
jschell28-Jun-23 6:22 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
charlieg30-Jun-23 1:37
charlieg30-Jun-23 1:37 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Alister Morton29-Jun-23 1:37
Alister Morton29-Jun-23 1:37 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
Rich Shealer29-Jun-23 4:12
Rich Shealer29-Jun-23 4:12 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
jschell29-Jun-23 5:51
jschell29-Jun-23 5:51 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
mattyltaylor29-Jun-23 10:16
mattyltaylor29-Jun-23 10:16 
GeneralRe: Bugs, the art of finding them and divine intervention Pin
jsrjsr29-Jun-23 12:02
professionaljsrjsr29-Jun-23 12:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.