I have an object that starts a thread, opens a file, and waits for input from other classes. As it receives input it writes it to disk. Basically, it's a thread safe data logging class...
Here's the weird part. When I open a form in the designer (VS 2008) that uses the object the file gets created. It's obviously running under the design time vhost process...
The odd thing is I've not been able to reproduce the issue in another project. I'm not sure what the rules are for code that gets executed in the designer and code that does not. For example creating a file in a WinForm constructor doesn't actually create the file at design time...
Can someone either help? Explanation? Reference?
Thanks.