views:

91

answers:

3

I'm experiencing a strange issue where my Visual Studio 2005 C++ program crashes the first time it runs after a new build. I'm having a difficult time debugging this intermittent issue and I suspect it's somehow related to a file somewhere on my hard drive that is being changed. If I can find the file(s), that might provide some more insight into this issue. Are there any good tools for observing which files are being created/deleted/modified when a specific program is run?

Thanks in advance!

+4  A: 

You can use Process Monitor tool. Set "Show File System Activity" to ON and set a filter on the process name to get only the traces you need.

Gulzar
A: 

SysInternals (now Microsoft) FileMon

http://technet.microsoft.com/en-us/sysinternals/bb896642.aspx

Andrew Medico
It have been superseded by Process Monitor, now...
PhiLho
A: 

Use find.

touch ~/test-marker
# run your program
find <directory> -newer ~/test-marker
Joshua Swink
This isn't available in Windows, without some extra libraries. Based on the initial question, I think the target OS is Windows.
Thomas Owens
The question didn't specify base-install software only.
Joshua Swink