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