all groups > c# > may 2004 >
You're in the

c#

group:

a program of FileSystemWatcher



a program of FileSystemWatcher Jet Leung
5/7/2004 11:45:51 PM
c#: Hi all,
I had made a windows service program for watching the bmp files in the
directory and if there is a files created then the program will change its
format into jpg and delete the bmp file. But how to debug this program?? I
had installed it. And when I created a bmp file in that directory the
program won't do anything. And I had set the break point in the program at
OnStart event.But it never active.Why ?? I am confusing with it.How can I
solve it?

Thank you.

Re: a program of FileSystemWatcher Barry Burton
5/8/2004 4:02:47 PM
After starting the service, select Debug->Processes in Visual Studio. Click
on the Show system processes check box (make sure the box is checked), then
select your service in the process list, click on Attach, then Click on
close. Now you're all set...set your breakpoint where you want it, drop a
..bmp file in the directory and off you go.

Barry

[quoted text, click to view]

AddThis Social Bookmark Button