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. Exceptions handler question

Exceptions handler question

Scheduled Pinned Locked Moved C / C++ / MFC
question
6 Posts 4 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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    Hi, I have a question about information provided by the exception handler My Background is on the MainFrame there Z/OS MVS via RTM (Recovery Termination Manager) provides information about the abend in a COntrol block SWDA (System Diagnotic Area) The Recovery Routine (ESTAE,ARR,FRR) provides the abilty to do a retry of the Aborted Task Does the FRameWork (AFX) provide anything besides a catch routine for the code that is problematic Thanks

    L J 2 Replies Last reply
    0
    • F ForNow

      Hi, I have a question about information provided by the exception handler My Background is on the MainFrame there Z/OS MVS via RTM (Recovery Termination Manager) provides information about the abend in a COntrol block SWDA (System Diagnotic Area) The Recovery Routine (ESTAE,ARR,FRR) provides the abilty to do a retry of the Aborted Task Does the FRameWork (AFX) provide anything besides a catch routine for the code that is problematic Thanks

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      What exactly is your issue in terms of C/C++/MFC? What frame work are you talking about?

      One of these days I'm going to think of a really clever signature.

      F 1 Reply Last reply
      0
      • F ForNow

        Hi, I have a question about information provided by the exception handler My Background is on the MainFrame there Z/OS MVS via RTM (Recovery Termination Manager) provides information about the abend in a COntrol block SWDA (System Diagnotic Area) The Recovery Routine (ESTAE,ARR,FRR) provides the abilty to do a retry of the Aborted Task Does the FRameWork (AFX) provide anything besides a catch routine for the code that is problematic Thanks

        J Offline
        J Offline
        JackDingler
        wrote on last edited by
        #3

        To my knowledge, MFC does not contain tools for managing task transactions. There is no common framework for managing undos, redos, etc... The try / catch mechanism is a simplistic implementation of such a system, built into C++ that allows a program to gracefully unwind from an aborted task. the Afx classes that support exception handling, simply build upon this framework. I have seen articles that discuss transaction processing for the windows file system and other kernel elements, coming up in future releases, but at this time, I don't know much about it. You'll likely find that you'll need to roll your own Transactional Tasks manager for your application.

        1 Reply Last reply
        0
        • L Lost User

          What exactly is your issue in terms of C/C++/MFC? What frame work are you talking about?

          One of these days I'm going to think of a really clever signature.

          F Offline
          F Offline
          ForNow
          wrote on last edited by
          #4

          you code a Catch pargraph and an excpetion happens somewhere in your THREAD the catch block is executed but you really don't know where in your code it happened Thanks

          L E 2 Replies Last reply
          0
          • F ForNow

            you code a Catch pargraph and an excpetion happens somewhere in your THREAD the catch block is executed but you really don't know where in your code it happened Thanks

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            I know how to code a catch block, I was just wondering whether you had posted in the correct forum. When you catch the exception it should contain sufficient information for you to discover what went wrong in your code.

            One of these days I'm going to think of a really clever signature.

            1 Reply Last reply
            0
            • F ForNow

              you code a Catch pargraph and an excpetion happens somewhere in your THREAD the catch block is executed but you really don't know where in your code it happened Thanks

              E Offline
              E Offline
              Eugen Podsypalnikov
              wrote on last edited by
              #6

              // don't know where in your code it happened Let your debugger stop at any exception (IDE::Ctrl+Alt+E in a loaded solution) :)

              They sought it with thimbles, they sought it with care; They pursued it with forks and hope; They threatened its life with a railway-share; They charmed it with smiles and soap. :)

              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