Click here to Skip to main content
15,885,216 members
Home / Discussions / C#
   

C#

 
GeneralRe: Getting an intersect of a color Pin
Ista27-Aug-03 3:37
Ista27-Aug-03 3:37 
GeneralRe: Getting an intersect of a color Pin
Philip Fitzsimons27-Aug-03 3:54
Philip Fitzsimons27-Aug-03 3:54 
GeneralRe: Getting an intersect of a color Pin
Rein Hillmann27-Aug-03 7:59
Rein Hillmann27-Aug-03 7:59 
GeneralRe: Getting an intersect of a color Pin
Ista27-Aug-03 11:03
Ista27-Aug-03 11:03 
GeneralRe: Getting an intersect of a color Pin
Rein Hillmann27-Aug-03 12:03
Rein Hillmann27-Aug-03 12:03 
GeneralRe: Getting an intersect of a color Pin
Roger Alsing28-Aug-03 2:05
Roger Alsing28-Aug-03 2:05 
Generalthreading and file permissions Pin
Member 46589526-Aug-03 11:26
Member 46589526-Aug-03 11:26 
GeneralWeird System.IO Related Problems Pin
Ranjan Banerji26-Aug-03 11:03
Ranjan Banerji26-Aug-03 11:03 
I am having what appears to be a strange problem when I do File and or directory management using System.IO.

For example if I have the following lines of code:

Directory.Delete()
File.Copy()
Use the File

If the directory to be deleted is very large, it appears that while the directory is being deleted, the code jumps to the next line which is copy a file and the following line which is use the File. But since the directory deletion is not complete the File Copy or use hte file fails.

I cannot reproduce the problem in debug mode so am not sure what the hell is happening.

Have also noticed the problem when I was doing server maintenance and was deleting a few gigs of files manually. At the same time I was running my code that was writing files to the drive. Since the drive was busy it was taking time to write the files. What was strange is that it attempted to use the file before it finished writing it. Which is the same problem as I mentioned above. It seems to jump over a line of code to the next without completeing teh first, implying that the File IO is asynchronous or that something else is very evil in there Smile | :)

Is Directory.delete asynchronous? Is there a global setting that makes it asynchronous? Any ideas?

Thanks.

Generaldll-dependencies Pin
MeisterBiber26-Aug-03 10:01
MeisterBiber26-Aug-03 10:01 
Generalconstructor calls constructor ( java: this(..) ) Pin
MeisterBiber26-Aug-03 9:45
MeisterBiber26-Aug-03 9:45 
GeneralRe: constructor calls constructor ( java: this(..) ) Pin
Jim Stewart26-Aug-03 10:13
Jim Stewart26-Aug-03 10:13 
GeneralRe: constructor calls constructor ( java: this(..) ) Pin
MeisterBiber26-Aug-03 10:42
MeisterBiber26-Aug-03 10:42 
GeneralCustom control Pin
Lasse Johansen26-Aug-03 9:16
Lasse Johansen26-Aug-03 9:16 
GeneralRe: Custom control Pin
Lasse Johansen26-Aug-03 9:50
Lasse Johansen26-Aug-03 9:50 
GeneralRe: Custom control Pin
Alvaro Mendez27-Aug-03 9:38
Alvaro Mendez27-Aug-03 9:38 
GeneralRe: Custom control Pin
Lasse Johansen27-Aug-03 9:54
Lasse Johansen27-Aug-03 9:54 
Generaldetect the connection Pin
aguest26-Aug-03 8:42
aguest26-Aug-03 8:42 
GeneralRe: detect the connection Pin
Ista26-Aug-03 16:07
Ista26-Aug-03 16:07 
GeneralRe: detect the connection Pin
Anonymous26-Aug-03 21:26
Anonymous26-Aug-03 21:26 
Generalgetting rows in a dataviewmanager Pin
zuhx26-Aug-03 8:27
zuhx26-Aug-03 8:27 
QuestionIgnorant simple data binding ? Pin
Ista26-Aug-03 8:27
Ista26-Aug-03 8:27 
Generalactive directory - DirectoryEntry Pin
devvvy26-Aug-03 7:42
devvvy26-Aug-03 7:42 
GeneralRe: active directory - DirectoryEntry Pin
Ista26-Aug-03 16:09
Ista26-Aug-03 16:09 
GeneralRe: active directory - DirectoryEntry Pin
devvvy26-Aug-03 16:12
devvvy26-Aug-03 16:12 
GeneralRe: active directory - DirectoryEntry Pin
Ista26-Aug-03 16:13
Ista26-Aug-03 16:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.