Click here to Skip to main content
15,898,222 members
Home / Discussions / C#
   

C#

 
GeneralRe: Active Accessibilty Pin
Anonymous10-Nov-03 0:48
Anonymous10-Nov-03 0:48 
GeneralRe: Active Accessibilty Pin
perlmunger10-Nov-03 5:13
perlmunger10-Nov-03 5:13 
QuestionHow to design the dynamic selecting rectangle. Pin
Member 6533996-Nov-03 19:47
Member 6533996-Nov-03 19:47 
AnswerRe: How to design the dynamic selecting rectangle. Pin
J. Dunlap6-Nov-03 19:55
J. Dunlap6-Nov-03 19:55 
GeneralThreading Issue Pls help!! Pin
Cutespn6-Nov-03 19:31
Cutespn6-Nov-03 19:31 
GeneralRe: Threading Issue Pls help!! Pin
perlmunger7-Nov-03 5:51
perlmunger7-Nov-03 5:51 
GeneralFile Contention Pin
David23g6-Nov-03 14:29
David23g6-Nov-03 14:29 
GeneralRe: File Contention Pin
Heath Stewart7-Nov-03 3:49
protectorHeath Stewart7-Nov-03 3:49 
I don't see how. FileInfo doesn't acquire a file handle which means the file isn't opened. It uses Win32's FindFirstFile API which gets information based on the file without opening - basically information that is stored in the filesystem for that file's record.

I would make sure you're closing all your streams. The best way to make sure of this is:
Stream s = null;
try
{
  // Streams, readers, it all works the same...
  s = new FileStream(...);
}
catch
{
  // Optional - you don't have to have a catch.
}
finally
{
  // Always gets run, even if the try or catch block returns.
  if (s != null) s.Close();
}


 

-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
GeneralRe: File Contention Pin
Anonymous7-Nov-03 8:52
Anonymous7-Nov-03 8:52 
QuestionCompilation to binary (No CLR) ? Pin
jbrydon6-Nov-03 14:09
jbrydon6-Nov-03 14:09 
AnswerRe: Compilation to binary (No CLR) ? Pin
Nick Parker6-Nov-03 17:42
protectorNick Parker6-Nov-03 17:42 
GeneralRemote MAC Address Pin
Shaun Becker6-Nov-03 12:55
Shaun Becker6-Nov-03 12:55 
GeneralRe: Remote MAC Address Pin
Heath Stewart7-Nov-03 3:55
protectorHeath Stewart7-Nov-03 3:55 
QuestionIn C# the fastest way to display a pixel or a full quadrilateral shape ? Pin
Demokritos6-Nov-03 9:38
Demokritos6-Nov-03 9:38 
AnswerRe: In C# the fastest way to turn on/off a pixel or a group of pixels ? Pin
leppie6-Nov-03 9:43
leppie6-Nov-03 9:43 
AnswerRe: In C# the fastest way to display a pixel or a full quadrilateral shape ? Pin
perlmunger6-Nov-03 12:00
perlmunger6-Nov-03 12:00 
GeneralGetting events properly logged in Events.Application Pin
LongRange.Shooter6-Nov-03 9:23
LongRange.Shooter6-Nov-03 9:23 
GeneralRe: Getting events properly logged in Events.Application Pin
Heath Stewart6-Nov-03 11:50
protectorHeath Stewart6-Nov-03 11:50 
GeneralChanging Registry Permissions Programmatically Pin
perlmunger6-Nov-03 9:21
perlmunger6-Nov-03 9:21 
GeneralRe: Changing Registry Permissions Programmatically Pin
leppie6-Nov-03 9:33
leppie6-Nov-03 9:33 
GeneralRe: Changing Registry Permissions Programmatically Pin
perlmunger6-Nov-03 9:59
perlmunger6-Nov-03 9:59 
GeneralReflections question Pin
Den2Fly6-Nov-03 8:06
Den2Fly6-Nov-03 8:06 
GeneralRe: Reflections question Pin
leppie6-Nov-03 9:29
leppie6-Nov-03 9:29 
GeneralRe: Reflections question Pin
Den2Fly6-Nov-03 23:22
Den2Fly6-Nov-03 23:22 
GeneralRe: Reflections question Pin
Den2Fly7-Nov-03 0:45
Den2Fly7-Nov-03 0:45 

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.