a program of FileSystemWatcher

  • Thread starter Thread starter Jet Leung
  • Start date Start date
J

Jet Leung

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.
 
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
 
Back
Top