Click here to Skip to main content
15,891,473 members
Home / Discussions / C#
   

C#

 
GeneralRe: xmldocument and xhtml = sloooow Pin
Roger Alsing10-Jun-04 23:37
Roger Alsing10-Jun-04 23:37 
GeneralRe: xmldocument and xhtml = sloooow Pin
Heath Stewart11-Jun-04 2:53
protectorHeath Stewart11-Jun-04 2:53 
GeneralLife of application Pin
quocbao9-Jun-04 21:55
quocbao9-Jun-04 21:55 
GeneralRe: Life of application Pin
Alex Getman10-Jun-04 1:24
Alex Getman10-Jun-04 1:24 
GeneralRe: Life of application Pin
Wackatronic10-Jun-04 4:55
Wackatronic10-Jun-04 4:55 
GeneralRe: Life of application Pin
Dave Kreskowiak10-Jun-04 4:56
mveDave Kreskowiak10-Jun-04 4:56 
GeneralThe file associated with FileStream Pin
Meysam Mahfouzi9-Jun-04 21:40
Meysam Mahfouzi9-Jun-04 21:40 
GeneralRe: The file associated with FileStream Pin
Heath Stewart10-Jun-04 4:25
protectorHeath Stewart10-Jun-04 4:25 
A FileStream is tied to a native file handle, so yes, you must reinstantiate it. This is also why you should call Dispose on the FileStream when you're done. The file handle is a native type and unmanaged. Calling dispose closes that file handle. If you don't call Dispose, the file may remain locked until your application is closed.

Changing the file to which a FileStream object reference is not supported because of this fact. You can reassign the variable to a new FileStream, but that would reference a different object (and if you didn't call Dispose before changing the reference, you've just lost the ability to dispose it so that the native file handle is released).

 

Microsoft MVP, Visual C#
My Articles
QuestionHow to add image property to UserControl? Pin
luming11223344559-Jun-04 21:38
luming11223344559-Jun-04 21:38 
AnswerRe: How to add image property to UserControl? Pin
partyganger10-Jun-04 3:10
partyganger10-Jun-04 3:10 
AnswerRe: How to add image property to UserControl? Pin
Heath Stewart10-Jun-04 4:20
protectorHeath Stewart10-Jun-04 4:20 
GeneralRe: How to add image property to UserControl? Pin
luming112233445510-Jun-04 14:37
luming112233445510-Jun-04 14:37 
Generalsend mail Pin
ChangAli9-Jun-04 21:06
ChangAli9-Jun-04 21:06 
GeneralRe: send mail Pin
Heath Stewart10-Jun-04 4:16
protectorHeath Stewart10-Jun-04 4:16 
GeneralRe: ListView Pin
myNameIsRon9-Jun-04 20:44
myNameIsRon9-Jun-04 20:44 
GeneralRe: ListView Pin
Alex Getman10-Jun-04 1:29
Alex Getman10-Jun-04 1:29 
GeneralRe: ListView Pin
Serge Lobko-Lobanovsky10-Jun-04 2:08
Serge Lobko-Lobanovsky10-Jun-04 2:08 
GeneralRe: ListView Pin
myNameIsRon11-Jun-04 19:54
myNameIsRon11-Jun-04 19:54 
GeneralAccess first form's control from the second form. Pin
Titan59-Jun-04 19:27
Titan59-Jun-04 19:27 
GeneralRe: Access first form's control from the second form. Pin
fayth9-Jun-04 19:54
fayth9-Jun-04 19:54 
GeneralRe: Access first form's control from the second form. Pin
fayth9-Jun-04 19:56
fayth9-Jun-04 19:56 
GeneralRe: Access first form's control from the second form. Pin
palbano9-Jun-04 19:56
palbano9-Jun-04 19:56 
GeneralRe: Access first form's control from the second form. Pin
Titan511-Jun-04 21:51
Titan511-Jun-04 21:51 
GeneralRunning size of Windows Form App. Pin
David Horner9-Jun-04 19:05
David Horner9-Jun-04 19:05 
GeneralRe: Running size of Windows Form App. Pin
palbano9-Jun-04 19:51
palbano9-Jun-04 19:51 

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.