in reply to Debug openings and closings

On linux and unix based systems you can use the command (not perl function!) strace to watch which files are opened and closed.

On windows you can use filemon for that.

I know that's not exactly what you want, but maybe when you see which files are opened you can guess which module is to blame.

Replies are listed 'Best First'.
Re^2: Debug openings and closings
by Fletch (Bishop) on Aug 27, 2007 at 14:44 UTC

    Actually on Linuxen it's strace, on Solaris (and other SysVs?) it's truss (as Anno mentions below), and on BSDen it's a pair of utilities ktrace and kdump (Free- and OS X for sure, pretty sure about Open-).</pedant>