Do not rely on the concept of a "current working directory" if you perform file I/O or display file dialog boxes from more than one thread. The operating system does not maintain a separate working directory for each thread.