Click here to Skip to main content
15,914,447 members
Home / Discussions / Visual Basic
   

Visual Basic

 
General.NET set-project installer creates software-entries twice Pin
Philipp3442-Mar-05 10:08
sussPhilipp3442-Mar-05 10:08 
GeneralThe format of the file 'system' is invalid. Pin
Anonymous2-Mar-05 7:51
Anonymous2-Mar-05 7:51 
GeneralRe: The format of the file 'system' is invalid. Pin
Dave Kreskowiak4-Mar-05 3:21
mveDave Kreskowiak4-Mar-05 3:21 
GeneralStreamReader constructor fails in FileWatcher event handler Pin
2-Mar-05 4:27
suss2-Mar-05 4:27 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 6:32
Mitch F.2-Mar-05 6:32 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 7:00
skifanatic2-Mar-05 7:00 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Mitch F.2-Mar-05 7:53
Mitch F.2-Mar-05 7:53 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 8:33
skifanatic2-Mar-05 8:33 
Programmer2k4 wrote:

I don't think there is any way to read/write to the file if it is returning a "File is already in use" error in previous tries.


This is the crux of the whole issue. The file should not be in use! The StreamReader.Close() method has been called, the method has been exited. There should be no resources associated with the file (at least not with any reasonable operating system!). However clearly the O/S is maintaining some sort of handle to the file and something has to be kicked repeatedly in the butt to get the resources freed.

Unfortunately I can't for the life of me figure out what is holding onto the file, how to free it up, and why it eventually fixes itself.

Very frustrating.
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 9:13
mveDave Kreskowiak2-Mar-05 9:13 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 9:59
skifanatic2-Mar-05 9:59 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
Dave Kreskowiak2-Mar-05 11:15
mveDave Kreskowiak2-Mar-05 11:15 
GeneralRe: StreamReader constructor fails in FileWatcher event handler [Edit] Pin
skifanatic2-Mar-05 11:47
skifanatic2-Mar-05 11:47 
GeneralRe: StreamReader constructor fails in FileWatcher event handler Pin
Dallas Matthews2-Mar-05 9:28
Dallas Matthews2-Mar-05 9:28 
GeneralTrigger to send an email Pin
Un-Connected2-Mar-05 4:18
Un-Connected2-Mar-05 4:18 
GeneralRe: Trigger to send an email Pin
Mitch F.2-Mar-05 5:55
Mitch F.2-Mar-05 5:55 
GeneralSystem.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58
ug39kxt@cs.bham.ac.uk2-Mar-05 3:58 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Colin Angus Mackay2-Mar-05 4:25
Colin Angus Mackay2-Mar-05 4:25 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50
ug39kxt@cs.bham.ac.uk2-Mar-05 4:50 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56
ug39kxt@cs.bham.ac.uk2-Mar-05 4:56 
GeneralRe: System.NullReferenceException: Object reference not set to an instance of an object. Pin
Dave Kreskowiak2-Mar-05 7:06
mveDave Kreskowiak2-Mar-05 7:06 
Generalconverting to VB.NET Pin
Lisana2-Mar-05 3:20
Lisana2-Mar-05 3:20 
GeneralRe: converting to VB.NET Pin
Dave Kreskowiak2-Mar-05 3:36
mveDave Kreskowiak2-Mar-05 3:36 
GeneralLatching a Snap-in to components in a windows service. Pin
CSharpBala2-Mar-05 2:54
CSharpBala2-Mar-05 2:54 
GeneralRecordSet and ResultSet Pin
Sumesh V.K2-Mar-05 0:47
Sumesh V.K2-Mar-05 0:47 
GeneralRe: RecordSet and ResultSet Pin
J4amieC2-Mar-05 3:17
J4amieC2-Mar-05 3:17 

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.