Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. I’m a Blonde by nature…

I’m a Blonde by nature…

Scheduled Pinned Locked Moved The Lounge
debugginghelpasp-netvisual-studioalgorithms
16 Posts 10 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Single Step Debugger
    wrote on last edited by
    #1

    Here I’m, two weeks searching for some nasty problem in the very core of our system. The VS debugger already hates me. My boss probably hates me. The support guys definitely hate me. And the customers hate everybody. Ok, I found where the memory fails, and I even could fix the problem during the debug session, changing some values in the memory. But I can’t find what cause this problem!!! It’s so painfully to be stupid. :sigh:

    The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

    E M G H 4 Replies Last reply
    0
    • S Single Step Debugger

      Here I’m, two weeks searching for some nasty problem in the very core of our system. The VS debugger already hates me. My boss probably hates me. The support guys definitely hate me. And the customers hate everybody. Ok, I found where the memory fails, and I even could fix the problem during the debug session, changing some values in the memory. But I can’t find what cause this problem!!! It’s so painfully to be stupid. :sigh:

      The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

      M Offline
      M Offline
      Mike Dimmick
      wrote on last edited by
      #2

      Have you tried using Data Breakpoints[^]? The debugger can automatically stop when a given memory location is changed. You probably have some stack- or heap-trashing bug, where you're overrunning a buffer, or possibly a calling-convention mismatch which can leave the stack unbalanced.

      DoEvents: Generating unexpected recursion since 1991

      S S 2 Replies Last reply
      0
      • S Single Step Debugger

        Here I’m, two weeks searching for some nasty problem in the very core of our system. The VS debugger already hates me. My boss probably hates me. The support guys definitely hate me. And the customers hate everybody. Ok, I found where the memory fails, and I even could fix the problem during the debug session, changing some values in the memory. But I can’t find what cause this problem!!! It’s so painfully to be stupid. :sigh:

        The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

        E Offline
        E Offline
        Ennis Ray Lynch Jr
        wrote on last edited by
        #3

        Good luck

        Need a C# Consultant? I'm available.
        Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

        S 1 Reply Last reply
        0
        • S Single Step Debugger

          Here I’m, two weeks searching for some nasty problem in the very core of our system. The VS debugger already hates me. My boss probably hates me. The support guys definitely hate me. And the customers hate everybody. Ok, I found where the memory fails, and I even could fix the problem during the debug session, changing some values in the memory. But I can’t find what cause this problem!!! It’s so painfully to be stupid. :sigh:

          The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #4

          The part I hate is how stupid you feel when you find the cause of the problem, and you want to beat yourself in the face with a 2x4. My most recent one went something like this:

          TableEntry *entry = TableFind(device_serial_number);
          if (entry == NULL) {
          _DeviceTable.Add(new TableEntry(device_serial_number));
          _DeviceList.InsertItem(entry->DeviceName);
          }

          This piece of code only got exercised in unusual circumstances, and was an absolute PITA to figure out in release mode. I was down to link maps and assembly language listings before I found it. Then I had to go looking for a 2x4.

          Software Zen: delete this;
          Fold With Us![^]

          L 1 Reply Last reply
          0
          • S Single Step Debugger

            Here I’m, two weeks searching for some nasty problem in the very core of our system. The VS debugger already hates me. My boss probably hates me. The support guys definitely hate me. And the customers hate everybody. Ok, I found where the memory fails, and I even could fix the problem during the debug session, changing some values in the memory. But I can’t find what cause this problem!!! It’s so painfully to be stupid. :sigh:

            The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

            H Offline
            H Offline
            Harald Krause
            wrote on last edited by
            #5

            Go get boundschecker or other error searching software. for my company it helped a lot to find very hard to find little bugs... Sometimes you are suprised how many errors this software can find.

            bb |~ bb

            R 1 Reply Last reply
            0
            • M Mike Dimmick

              Have you tried using Data Breakpoints[^]? The debugger can automatically stop when a given memory location is changed. You probably have some stack- or heap-trashing bug, where you're overrunning a buffer, or possibly a calling-convention mismatch which can leave the stack unbalanced.

              DoEvents: Generating unexpected recursion since 1991

              S Offline
              S Offline
              Single Step Debugger
              wrote on last edited by
              #6

              Thanks Mike, I actually have a hash map failure and I’m using the VS Memory Viewer, but I will take a look to the “Data Breakpoints”.

              The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

              1 Reply Last reply
              0
              • E Ennis Ray Lynch Jr

                Good luck

                Need a C# Consultant? I'm available.
                Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway

                S Offline
                S Offline
                Single Step Debugger
                wrote on last edited by
                #7

                I’ll need it, because I’m digging into a COM component with 410 MB source code /4704 source files/.

                The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

                D G 2 Replies Last reply
                0
                • G Gary R Wheeler

                  The part I hate is how stupid you feel when you find the cause of the problem, and you want to beat yourself in the face with a 2x4. My most recent one went something like this:

                  TableEntry *entry = TableFind(device_serial_number);
                  if (entry == NULL) {
                  _DeviceTable.Add(new TableEntry(device_serial_number));
                  _DeviceList.InsertItem(entry->DeviceName);
                  }

                  This piece of code only got exercised in unusual circumstances, and was an absolute PITA to figure out in release mode. I was down to link maps and assembly language listings before I found it. Then I had to go looking for a 2x4.

                  Software Zen: delete this;
                  Fold With Us![^]

                  L Offline
                  L Offline
                  leppie
                  wrote on last edited by
                  #8

                  Gary R. Wheeler wrote:

                  if (entry == NULL) { _DeviceTable.Add(new TableEntry(device_serial_number)); _DeviceList.InsertItem(entry->DeviceName); }

                  But of course entry is NULL, it will explode in the 2nd statement of the if.

                  xacc.ide - now with TabsToSpaces support
                  IronScheme - 1.0 alpha 4a out now (29 May 2008)

                  G 1 Reply Last reply
                  0
                  • H Harald Krause

                    Go get boundschecker or other error searching software. for my company it helped a lot to find very hard to find little bugs... Sometimes you are suprised how many errors this software can find.

                    bb |~ bb

                    R Offline
                    R Offline
                    Rama Krishna Vavilala
                    wrote on last edited by
                    #9

                    It does to a certain extent, however as applications get complex its performance start going down to the extent that it is unusable.

                    Proud to be a CPHog user

                    H 1 Reply Last reply
                    0
                    • R Rama Krishna Vavilala

                      It does to a certain extent, however as applications get complex its performance start going down to the extent that it is unusable.

                      Proud to be a CPHog user

                      H Offline
                      H Offline
                      Harald Krause
                      wrote on last edited by
                      #10

                      Yes, but if you have automated test scenarios, or if you test small libraries it is very handy.

                      bb |~ bb

                      1 Reply Last reply
                      0
                      • M Mike Dimmick

                        Have you tried using Data Breakpoints[^]? The debugger can automatically stop when a given memory location is changed. You probably have some stack- or heap-trashing bug, where you're overrunning a buffer, or possibly a calling-convention mismatch which can leave the stack unbalanced.

                        DoEvents: Generating unexpected recursion since 1991

                        S Offline
                        S Offline
                        StevenWalsh
                        wrote on last edited by
                        #11

                        Unless its a Managed application

                        Einstein argued that there must be simplified explanations of nature, because God is not capricious or arbitrary. No such faith comforts the software engineer. -Fred Brooks

                        1 Reply Last reply
                        0
                        • S Single Step Debugger

                          I’ll need it, because I’m digging into a COM component with 410 MB source code /4704 source files/.

                          The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

                          D Offline
                          D Offline
                          Dan Neely
                          wrote on last edited by
                          #12

                          :wtf: :(( :(( :(( :((

                          Today's lesson is brought to you by the word "niggardly". Remember kids, don't attribute to racism what can be explained by Scandinavian language roots. -- Robert Royall

                          1 Reply Last reply
                          0
                          • S Single Step Debugger

                            I’ll need it, because I’m digging into a COM component with 410 MB source code /4704 source files/.

                            The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

                            G Offline
                            G Offline
                            Graham Bradshaw
                            wrote on last edited by
                            #13

                            Deyan Georgiev wrote:

                            410 MB source code

                            Is that right? Even if each line is full of 80 characters of source, that's 5.3 million lines. :~

                            S 1 Reply Last reply
                            0
                            • G Graham Bradshaw

                              Deyan Georgiev wrote:

                              410 MB source code

                              Is that right? Even if each line is full of 80 characters of source, that's 5.3 million lines. :~

                              S Offline
                              S Offline
                              Single Step Debugger
                              wrote on last edited by
                              #14

                              Sorry my bad. The debug database and release files are in the same folder which I checked before. The reality is less then 50 Mb source code and about 1500 files. Did I mention that mentally I’m a blonde today?

                              The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

                              E 1 Reply Last reply
                              0
                              • S Single Step Debugger

                                Sorry my bad. The debug database and release files are in the same folder which I checked before. The reality is less then 50 Mb source code and about 1500 files. Did I mention that mentally I’m a blonde today?

                                The narrow specialist in the broad sense of the word is a complete idiot in the narrow sense of the word.

                                E Offline
                                E Offline
                                Ennis Ray Lynch Jr
                                wrote on last edited by
                                #15

                                I prefer to have blond days myself.

                                Need software developed? Offering C# development all over the United States, ERL GLOBAL, Inc is the only call you will have to make.
                                Happiness in intelligent people is the rarest thing I know. -- Ernest Hemingway
                                Most of this sig is for Google, not ego.

                                1 Reply Last reply
                                0
                                • L leppie

                                  Gary R. Wheeler wrote:

                                  if (entry == NULL) { _DeviceTable.Add(new TableEntry(device_serial_number)); _DeviceList.InsertItem(entry->DeviceName); }

                                  But of course entry is NULL, it will explode in the 2nd statement of the if.

                                  xacc.ide - now with TabsToSpaces support
                                  IronScheme - 1.0 alpha 4a out now (29 May 2008)

                                  G Offline
                                  G Offline
                                  Gary R Wheeler
                                  wrote on last edited by
                                  #16

                                  Indeed it did. I've omitted a couple dozen lines of code from the original. This is what I got for copy/pasting code and not paying attention :doh:.

                                  Software Zen: delete this;
                                  Fold With Us![^]

                                  1 Reply Last reply
                                  0
                                  Reply
                                  • Reply as topic
                                  Log in to reply
                                  • Oldest to Newest
                                  • Newest to Oldest
                                  • Most Votes


                                  • Login

                                  • Don't have an account? Register

                                  • Login or register to search.
                                  • First post
                                    Last post
                                  0
                                  • Categories
                                  • Recent
                                  • Tags
                                  • Popular
                                  • World
                                  • Users
                                  • Groups