Not sure I understood the implications of your question, but it
appears that you want to bypass the built in security of the OS.
Are both processes under your control ? If so, you should realize that
the exception is raised for a reason. How do you handle data
concurrency in a scenario like that ?

On Dec 4, 4:48 pm, wallacej <[EMAIL PROTECTED]> wrote:
> Hi
>
> I'm using a FileStream to open a file for reading and writing.
> Another process at any time can try to use a FileStream to open the
> same file.  I wish to prevent the IO.IOException that would occur if
> both processes tried to open the file at the same time.  I'm thinking
> of catching the IO.IOException and retrying for a specified number of
> times.
>
> Is this the best method? Or is there another, more elegant way?
>
> Cheers
>
> Jaimo
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/DotNetDevelopment?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to