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. Redefining ATLASSERT

Redefining ATLASSERT

Scheduled Pinned Locked Moved C / C++ / MFC
c++sysadminquestion
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.
  • N Offline
    N Offline
    nw60312
    wrote on last edited by
    #1

    I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!

    C G L 3 Replies Last reply
    0
    • N nw60312

      I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If it's just a macro, then just #define it to do nothing, after including the header that defines it to start with. Christian The tragedy of cyberspace - that so much can travel so far, and yet mean so little. "I'm somewhat suspicious of STL though. My (test,experimental) program worked first time. Whats that all about??!?! - Jon Hulatt, 22/3/2002

      1 Reply Last reply
      0
      • N nw60312

        I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!

        G Offline
        G Offline
        Gerald Schwab
        wrote on last edited by
        #3

        It compiles to nothing when you compile in release mode.

        N 1 Reply Last reply
        0
        • G Gerald Schwab

          It compiles to nothing when you compile in release mode.

          N Offline
          N Offline
          nw60312
          wrote on last edited by
          #4

          Thanks! However, I have been using debug builds and switching between a GUI app so I can step through code and the ASP pages. I missed redefining if after the header, I was trying to do it before the include. That redifined the macro however I am still getting assertion dialogs somewhere. Do you guys know off the top of you head any other assert macros that would get called from the ATL internals? Thanks again!

          G 1 Reply Last reply
          0
          • N nw60312

            Thanks! However, I have been using debug builds and switching between a GUI app so I can step through code and the ASP pages. I missed redefining if after the header, I was trying to do it before the include. That redifined the macro however I am still getting assertion dialogs somewhere. Do you guys know off the top of you head any other assert macros that would get called from the ATL internals? Thanks again!

            G Offline
            G Offline
            Gerald Schwab
            wrote on last edited by
            #5

            ATL makes heavy use of ATLASSERT internally.

            1 Reply Last reply
            0
            • N nw60312

              I am working on some ATL objects that are called from an ASP page. Is there anyway to redefine ATLASSERT to do something else or nothing so it doesn't hang the server when it throws the dialog box? TIA!

              L Offline
              L Offline
              Le centriste
              wrote on last edited by
              #6

              #ifdef ATLASSERT
              #undef ATLASSERT
              #endif

              #define ATLASSERT ....

              Michel If I am wrong or said something stupid, I apologize in advance ;)

              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