J
Jason Barnett
I'm not sure if this is the correct discussion group, so please advise me of
a better one if applicable.
I've created a windows service using v2.0 Framework. VS2005 created a
Program class, containing my Main method that instantiates and runs my
service. I've overridden the OnStart method to create a thread for
asynchronous processing. Within the thread's execution method, I call a
method on a referenced assembly to perform some work.
I've added try-catch blocks within every step to capure any Exception
object; within Main method, OnStart method, thread's execution method, and
referenced assembly's public method. However, My service displays an
"Unhandled Exception" popup, asking me if I want to debug. I don't
understand how any exception is getting by my error handling. Also, I don't
understand how to debug the process, since I can't attach it within VS2005
(it crashes too quickly), and the debug dialog doesn't bring me to any line
of code when I point it to an existing instance of my project.
Could someone please advise me what steps I can take to investigate and
resolve the issue?
a better one if applicable.
I've created a windows service using v2.0 Framework. VS2005 created a
Program class, containing my Main method that instantiates and runs my
service. I've overridden the OnStart method to create a thread for
asynchronous processing. Within the thread's execution method, I call a
method on a referenced assembly to perform some work.
I've added try-catch blocks within every step to capure any Exception
object; within Main method, OnStart method, thread's execution method, and
referenced assembly's public method. However, My service displays an
"Unhandled Exception" popup, asking me if I want to debug. I don't
understand how any exception is getting by my error handling. Also, I don't
understand how to debug the process, since I can't attach it within VS2005
(it crashes too quickly), and the debug dialog doesn't bring me to any line
of code when I point it to an existing instance of my project.
Could someone please advise me what steps I can take to investigate and
resolve the issue?