Announcement

Collapse
No announcement yet.

Exception error

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Exception error

    When Windows reports the Problem signature, like the one below when my app crashes, can the "Exception Offset" help me find the offending line of my compiled PB code?

    I've got a threading problem that eludes me, and a dual core PC will crash my app, given enough time, every time.

    Problem signature:
    • Problem Event Name: APPCRASH
    • Application Name: Daub32_Test.exe
    • Application Version: 0.0.0.0
    • Application Timestamp: 00003039
    • Fault Module Name: DAUB32.DLL
    • Fault Module Version: 0.1.0.0
    • Fault Module Timestamp: 00003039
    • Exception Code: c0000005
    • Exception Offset: 000572f4
    • OS Version: 6.0.6000.2.0.0.256.4
    • Locale ID: 1033
    • Additional Information 1: b9a4
    • Additional Information 2: 75bf43dd15ab850c1bd7cf4f28d1e328
    • Additional Information 3: b840
    • Additional Information 4: 41259a02215e6f58a0d0cdc1461a066a

  • #2
    Running it through a debugger (such as OllyDbg) may help if you know assembler. If you have the code, you could also compile the DLL as an EXE and run it through the PB debugger.
    kgpsoftware.com | Slam DBMS | PrpT Control | Other Downloads | Contact Me

    Comment


    • #3
      Not to forget: #TOOLS ON and TRACE is your friend.

      Comment


      • #4
        Are there any command line switches for PBWIN.EXE that put me near the Exception Offset without having to RUN the code?:ven:

        Comment


        • #5
          >Are there any command line switches ...

          No.

          That was a really nice feature of PB/DOS, but Windows Doth Giveth and Windows Doth Taketh Away.

          Besides... as discussed many, many, many times here... just because a program generates a protection fault at "Point A" (your offset), it does not mean that is where your programming error is.. i.e., relating the compiled offset to a line of source code is not silver bulllet.
          Michael Mattias
          Tal Systems (retired)
          Port Washington WI USA
          [email protected]
          http://www.talsystems.com

          Comment


          • #6
            In my experience a c0000005 exception means that somewhere you are accessing memory that isn't yours anymore.
            "There are two novels that can change a bookish fourteen-year old's life: The Lord of the Rings and Atlas Shrugged. One is a childish fantasy that often engenders a lifelong obsession with its unbelievable heroes, leading to an emotionally stunted, socially crippled adulthood, unable to deal with the real world. The other, of course, involves orcs." - John Rogers

            Comment


            • #7
              In my experience a c0000005 exception means that somewhere you are accessing memory that isn't yours anymore
              Um, that would be everyone's experience, because that's what code c0000005 means.

              Well, actually it means the memory is not yours, period, regardless if it ever was yours or not.
              Michael Mattias
              Tal Systems (retired)
              Port Washington WI USA
              [email protected]
              http://www.talsystems.com

              Comment

              Working...
              X