Hi all,

In my windows application written in C#, I am calling one windows utility...but it is likely to fail the execution of that windows utility execution...How do I log the error of that utility into my C# application?

regards
Jeet

are you able to use try catch block where you use that utility?

are you able to use try catch block where you use that utility?

Yes, I can try-catch....
but the problem is that error occurred by windows utility is not being trapped..... and which is right too....as error is not from my application...

e.g. my utility requires network connection, but if the connection is not there - utility will get failed...but My application does not know about that...This is just one possibility of an error...

Thanks
Jeet

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.