I am unable to duplicate your issue ... Are you using a local or a
network drive? Can you provide your test application so I can look
through it?
Cheers,
Greg
On Tue, May 20, 2008 at 1:29 AM, Brady Kelly <***@chasesoftware.co.za> wrote:
> None, I'm just running a test C# console application.
>
>> -----Original Message-----
>> From: Discussion of development on the .NET platform using any managed
>> language [mailto:DOTNET-***@DISCUSS.DEVELOP.COM] On Behalf Of Ryan
>> Rinaldi (TT)
>> Sent: 19 May 2008 09:57 PM
>> To: DOTNET-***@DISCUSS.DEVELOP.COM
>> Subject: Re: [DOTNET-CLR] Directory Ops Behaving Asynchronous
>>
>> What test framework are you using?
>>
>> -----Original Message-----
>> From: Discussion of development on the .NET platform using any managed
>> language [mailto:DOTNET-***@DISCUSS.DEVELOP.COM] On Behalf Of Brady
>> Kelly
>> Sent: Monday, May 19, 2008 12:43 PM
>> To: DOTNET-***@DISCUSS.DEVELOP.COM
>> Subject: [DOTNET-CLR] Directory Ops Behaving Asynchronous
>>
>> I have the following code execute:
>>
>>
>>
>> if (Directory.Exists(exportFolder))
>>
>> {
>>
>> Directory.Delete(exportFolder, true);
>>
>> }
>>
>> Directory.CreateDirectory(exportFolder);
>>
>>
>>
>> and then a database update, and then:
>>
>>
>>
>> wiz57.PerformExport();
>>
>>
>>
>> Occassionally, about 1 in 20 tests I run in the IDE, PerformExport
>> fails
>> because exportFolder does not exist. How can it not exist if I create
>> it
>> and
>> no exception is thrown? I can only suspect that the Directory code is
>> not
>> truly synchronous, and has not completed before PerformExport executes.
>>
>>
>>
>> Brady Kelly
>> Software Developer
>>
>> Chase Software
>> Office: 011 287 1820
>> Cell: 078 331 3781
>> Fax: 086 691 5653
>>
>> <http://www.chasesoftware.co.za/> www.ChaseSoftware.co.za
>>
>>
>>
>>
>> ===================================
>> This list is hosted by DevelopMentor(r) http://www.develop.com
>>
>> View archives and manage your subscription(s) at
>> http://discuss.develop.com
>>
>> ===================================
>> This list is hosted by DevelopMentor. http://www.develop.com
>>
>> View archives and manage your subscription(s) at
>> http://discuss.develop.com
>
> ===================================
> This list is hosted by DevelopMentor(R) http://www.develop.com
>
> View archives and manage your subscription(s) at http://discuss.develop.com
>
--
We are what we repeatedly do. Excellence, then, is a habit.
===================================
This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com