problem with windows service - msgbox problem
-
hi, i wrote one vb.net service which checks for a set of conditions. if the condition fails, it gives a warning to the user asking him to fulfil the conditions within 30 minutes, failing which he will be forcebly logged off. after 30 mins, it checks taht condition again & does accordingly. (i used a msgbox to give that warning to the user). it works well & good if he responds to the msgbox by clicking on it. if he doesn't respond at all, it throws an error saying that service cannot run & stops abruptly. i guess it is waiting for the user's response for that msgbox. i am thinking of two options: some other way (popup kind) to give warning to the user instaed of msgbox start a separate thread for this kind of messages i will be thankful for some light on these issues & a better solution.
-
hi, i wrote one vb.net service which checks for a set of conditions. if the condition fails, it gives a warning to the user asking him to fulfil the conditions within 30 minutes, failing which he will be forcebly logged off. after 30 mins, it checks taht condition again & does accordingly. (i used a msgbox to give that warning to the user). it works well & good if he responds to the msgbox by clicking on it. if he doesn't respond at all, it throws an error saying that service cannot run & stops abruptly. i guess it is waiting for the user's response for that msgbox. i am thinking of two options: some other way (popup kind) to give warning to the user instaed of msgbox start a separate thread for this kind of messages i will be thankful for some light on these issues & a better solution.
It would help if you would display your code. But I'm thinking that you should use a
Try Catch
statement.