Re: [ADVANCED-DOTNET] Using the Win32 API's LockFile function

2007-04-19 Thread Nassar, Anthony
I suppose I could simply retain the FileStream object and keep rewinding it when I want to save the model. === This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

[ADVANCED-DOTNET] Using the Win32 API's LockFile function

2007-04-19 Thread Nassar, Anthony
Has anyone done this in the context of a .NET application? The files I want to lock are all XML files; so far, I've simply used let the XmlSerializer close them as soon as it was done, which was convenient: the model underlying the view had to remember only the path, so Save and Close were trivial