a program of FileSystemWatcher

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.
 
B

Barry Burton

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top