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. General Programming
  3. C / C++ / MFC
  4. weird call stack problem w/VC 6...

weird call stack problem w/VC 6...

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingvisual-studiocomhardwaredata-structures
5 Posts 3 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.
  • J Offline
    J Offline
    Jesse Evans
    wrote on last edited by
    #1

    Hi, folks! I develop test & measurement systems for our manufacturing operation. One of my systems' updates has introduced a very reliable crash and I'm having some difficulty tracking down the problem. I have a desktop PC set up the same way as my testers (w/o the hardware). When I run the app in debug mode there I can trace the program flow through the call stack window (I'm using the VC 6 IDE as my debugger). However, when I try the same thing on real hardware the CS window is blank (even if I set a break at WinMain). Also, if I try to use the step out of function button, the status bar displays a message saying the function has no return address (yet stepping through it returns just fine!). Any clues as to how I can solve this? Both locations read the same project (dsw and dsp) files, so the settings should be the same, right? Here are links to window snapshots showing the debugger in action. The first image is running on the desktop system, showing the proper view of the call stack. The second image is running on the test system. Note the absence of any info in the call stack window. The last image is also on the hardware, but using Wndbg. Note that the call stack seems to be ok. Desktop View Hardware View Hardware View using WnDbg TIA!

    'til next we type... HAVE FUN!! -- Jesse

    J C 2 Replies Last reply
    0
    • J Jesse Evans

      Hi, folks! I develop test & measurement systems for our manufacturing operation. One of my systems' updates has introduced a very reliable crash and I'm having some difficulty tracking down the problem. I have a desktop PC set up the same way as my testers (w/o the hardware). When I run the app in debug mode there I can trace the program flow through the call stack window (I'm using the VC 6 IDE as my debugger). However, when I try the same thing on real hardware the CS window is blank (even if I set a break at WinMain). Also, if I try to use the step out of function button, the status bar displays a message saying the function has no return address (yet stepping through it returns just fine!). Any clues as to how I can solve this? Both locations read the same project (dsw and dsp) files, so the settings should be the same, right? Here are links to window snapshots showing the debugger in action. The first image is running on the desktop system, showing the proper view of the call stack. The second image is running on the test system. Note the absence of any info in the call stack window. The last image is also on the hardware, but using Wndbg. Note that the call stack seems to be ok. Desktop View Hardware View Hardware View using WnDbg TIA!

      'til next we type... HAVE FUN!! -- Jesse

      J Offline
      J Offline
      Jonathan Darka
      wrote on last edited by
      #2

      Hi Jesse, Have you tried setting up a symbol server to see if that improves things ? A little self promotion, but only because I am trying to help... Setting up a symbol server Also, I assume you have copied the .pdb file to the 'real hardware' machine ? regards,


      Jonathan Wilkes Darka [Xanya.net]

      1 Reply Last reply
      0
      • J Jesse Evans

        Hi, folks! I develop test & measurement systems for our manufacturing operation. One of my systems' updates has introduced a very reliable crash and I'm having some difficulty tracking down the problem. I have a desktop PC set up the same way as my testers (w/o the hardware). When I run the app in debug mode there I can trace the program flow through the call stack window (I'm using the VC 6 IDE as my debugger). However, when I try the same thing on real hardware the CS window is blank (even if I set a break at WinMain). Also, if I try to use the step out of function button, the status bar displays a message saying the function has no return address (yet stepping through it returns just fine!). Any clues as to how I can solve this? Both locations read the same project (dsw and dsp) files, so the settings should be the same, right? Here are links to window snapshots showing the debugger in action. The first image is running on the desktop system, showing the proper view of the call stack. The second image is running on the test system. Note the absence of any info in the call stack window. The last image is also on the hardware, but using Wndbg. Note that the call stack seems to be ok. Desktop View Hardware View Hardware View using WnDbg TIA!

        'til next we type... HAVE FUN!! -- Jesse

        C Offline
        C Offline
        cgreathouse
        wrote on last edited by
        #3

        I'd check and make sure your dev and test environments are the same. Make sure that all of the dlls, etc that you app depends on are the same version in both environments. Here's a similar case to yours. http://groups.google.com/group/microsoft.public.vstudio.development/browse_thread/thread/4ab576781d9b05b8/14be7f83d8ef39af?lnk=st&q=no+call+stack+displayed&rnum=3#14be7f83d8ef39af[^]

        J 2 Replies Last reply
        0
        • C cgreathouse

          I'd check and make sure your dev and test environments are the same. Make sure that all of the dlls, etc that you app depends on are the same version in both environments. Here's a similar case to yours. http://groups.google.com/group/microsoft.public.vstudio.development/browse_thread/thread/4ab576781d9b05b8/14be7f83d8ef39af?lnk=st&q=no+call+stack+displayed&rnum=3#14be7f83d8ef39af[^]

          J Offline
          J Offline
          Jesse Evans
          wrote on last edited by
          #4

          Thanks for the link. That certainly sounds like my problem; I'll have a look into it. Again, thanks!

          'til next we type... HAVE FUN!! -- Jesse

          1 Reply Last reply
          0
          • C cgreathouse

            I'd check and make sure your dev and test environments are the same. Make sure that all of the dlls, etc that you app depends on are the same version in both environments. Here's a similar case to yours. http://groups.google.com/group/microsoft.public.vstudio.development/browse_thread/thread/4ab576781d9b05b8/14be7f83d8ef39af?lnk=st&q=no+call+stack+displayed&rnum=3#14be7f83d8ef39af[^]

            J Offline
            J Offline
            Jesse Evans
            wrote on last edited by
            #5

            cgreathouse, That was it! Thank you very much. Turned out that the imagehlp.dll on the system that worked was v 4.00. The version on the failing system was 5.00.2128.1. I replaced it with the v 4.00 and now I get a call stack. Have a beer on me!

            'til next we type... HAVE FUN!! -- Jesse

            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