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#
  4. About error monitoring ?

About error monitoring ?

Scheduled Pinned Locked Moved C#
helptutorialquestion
9 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.
  • F Offline
    F Offline
    fu0
    wrote on last edited by
    #1

    windows provides many win32 functions for error detection on system level. is there a possibility to detect error on application level? for example: while running an application, there comes out a warning dialog which might means error. Can i detect it timely ?

    C E 2 Replies Last reply
    0
    • F fu0

      windows provides many win32 functions for error detection on system level. is there a possibility to detect error on application level? for example: while running an application, there comes out a warning dialog which might means error. Can i detect it timely ?

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      fu0 wrote: there comes out a warning dialog which might means error. Can i detect it timely ? :confused: Then don't write the code that displays the dialog. I don't think this is the answer you expect, can you be more explicit in your question.


      "If a man empties his purse into his head, no man can take it away from him, for an investment in knowledge pays the best interest." -- Joseph E. O'Donnell The Second EuroCPian Event will be in Brussels on the 4th of September Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

      1 Reply Last reply
      0
      • F fu0

        windows provides many win32 functions for error detection on system level. is there a possibility to detect error on application level? for example: while running an application, there comes out a warning dialog which might means error. Can i detect it timely ?

        E Offline
        E Offline
        exhaulted
        wrote on last edited by
        #3

        I don't quite know what your asking for but try looking up 2 fatures of .Net. Exception Handling / Throwing Trace Switches and the debug class. Can't really be more helpfull without knowing more about your problem. Try searching on MSDN for the above subjects and see if that helps. Kev Pearman MCP

        F 1 Reply Last reply
        0
        • E exhaulted

          I don't quite know what your asking for but try looking up 2 fatures of .Net. Exception Handling / Throwing Trace Switches and the debug class. Can't really be more helpfull without knowing more about your problem. Try searching on MSDN for the above subjects and see if that helps. Kev Pearman MCP

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

          my idea is this: in a sample, an application(not my own) displays a messagebox which might means some error happened. then my own application could know something happened by this event(messagebox's displaying). however, my application dont want to know any details about the error, it only write into a log like this: when, which application, something happened. And my application dont want to interfere with the application. it works like a shell. could i realize it ?

          E 1 Reply Last reply
          0
          • F fu0

            my idea is this: in a sample, an application(not my own) displays a messagebox which might means some error happened. then my own application could know something happened by this event(messagebox's displaying). however, my application dont want to know any details about the error, it only write into a log like this: when, which application, something happened. And my application dont want to interfere with the application. it works like a shell. could i realize it ?

            E Offline
            E Offline
            exhaulted
            wrote on last edited by
            #5

            So you want your application to run and if another application displays a MessageBox you want your application to do something, but you don't want your application to be tied into the other application at all? If that is the case then i'm afraid i can't help you, i wouldn't even know where to start. If thats not the case then please say so. Kev Pearman MCP

            F 1 Reply Last reply
            0
            • E exhaulted

              So you want your application to run and if another application displays a MessageBox you want your application to do something, but you don't want your application to be tied into the other application at all? If that is the case then i'm afraid i can't help you, i wouldn't even know where to start. If thats not the case then please say so. Kev Pearman MCP

              F Offline
              F Offline
              fu0
              wrote on last edited by
              #6

              in my original idea, i dont want my application to be tied into other applcation.i thought it would interfere with other appliction's nomarl process. from these words:but you don't want your application to be tied into the other application at all,i guess : if my application is tied into other application,will it have the ablitiy to do the work ? could you make a suggestion about your idea ?

              E 1 Reply Last reply
              0
              • F fu0

                in my original idea, i dont want my application to be tied into other applcation.i thought it would interfere with other appliction's nomarl process. from these words:but you don't want your application to be tied into the other application at all,i guess : if my application is tied into other application,will it have the ablitiy to do the work ? could you make a suggestion about your idea ?

                E Offline
                E Offline
                exhaulted
                wrote on last edited by
                #7

                Is the "Other Application" something that your developing? If it is you could tie the two together somehow, sending a message to your "Listening" application to prompt it to do something? Without knowing the entire problem it's difficult to suggest anything specific. Hope you are able to solve the problem. Kev Pearman MCP

                F 1 Reply Last reply
                0
                • E exhaulted

                  Is the "Other Application" something that your developing? If it is you could tie the two together somehow, sending a message to your "Listening" application to prompt it to do something? Without knowing the entire problem it's difficult to suggest anything specific. Hope you are able to solve the problem. Kev Pearman MCP

                  F Offline
                  F Offline
                  fu0
                  wrote on last edited by
                  #8

                  i think the real problem is: "The other applciation" is not my developing . So i want to find a way how to monitor other application 's status to comfirm whethere there occurs an error. in my opinion, if i can recorgnize a messagebox's displaying i can guess there might be an error occured.

                  E 1 Reply Last reply
                  0
                  • F fu0

                    i think the real problem is: "The other applciation" is not my developing . So i want to find a way how to monitor other application 's status to comfirm whethere there occurs an error. in my opinion, if i can recorgnize a messagebox's displaying i can guess there might be an error occured.

                    E Offline
                    E Offline
                    exhaulted
                    wrote on last edited by
                    #9

                    I don't know if it would even be possible, if the other application doesn't do anything more than display a MessageBox then i wouldn't know how to do it. Maybe someone who knows a little more about how windows works will be able to help you but this is a bit above me i'm afraid. Hope you resolve your problem. Kev Pearman MCP

                    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