Click here to Skip to main content
15,889,335 members
Home / Discussions / C#
   

C#

 
GeneralRe: c# out parameter must be assigned.... I don't see the logic Pin
Eddy Vluggen10-Mar-17 12:23
professionalEddy Vluggen10-Mar-17 12:23 
QuestionCounter not updating file Pin
xiecsuk9-Mar-17 5:34
xiecsuk9-Mar-17 5:34 
AnswerRe: Counter not updating file Pin
Midi_Mick9-Mar-17 5:59
professionalMidi_Mick9-Mar-17 5:59 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 0:06
xiecsuk10-Mar-17 0:06 
GeneralRe: Counter not updating file Pin
Midi_Mick10-Mar-17 0:25
professionalMidi_Mick10-Mar-17 0:25 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 1:22
xiecsuk10-Mar-17 1:22 
GeneralRe: Counter not updating file Pin
Richard Deeming10-Mar-17 1:45
mveRichard Deeming10-Mar-17 1:45 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 3:53
xiecsuk10-Mar-17 3:53 
I have replaced my code with your code exactly as in your message and I get the following error message:
An exception of type 'System.ObjectDisposedException' occurred in System.IO.FileSystem.dll but was not handled in user code

Additional information: Cannot access a closed file.
This occurs on the line counterStream.Seek(0L, SeekOrigin.Begin);. Perhaps this is why my code is not updating the file. Somehow, it also thinks it's closed after the update of visits.

visits has been read and incremented correctly in your code.
GeneralRe: Counter not updating file Pin
Richard Deeming10-Mar-17 4:00
mveRichard Deeming10-Mar-17 4:00 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 4:31
xiecsuk10-Mar-17 4:31 
AnswerRe: Counter not updating file Pin
Gerry Schmitz9-Mar-17 6:45
mveGerry Schmitz9-Mar-17 6:45 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 0:08
xiecsuk10-Mar-17 0:08 
AnswerRe: Counter not updating file Pin
Ralf Meier10-Mar-17 0:23
mveRalf Meier10-Mar-17 0:23 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 0:35
xiecsuk10-Mar-17 0:35 
GeneralRe: Counter not updating file Pin
Nathan Minier10-Mar-17 1:38
professionalNathan Minier10-Mar-17 1:38 
GeneralRe: Counter not updating file Pin
Gerry Schmitz10-Mar-17 4:23
mveGerry Schmitz10-Mar-17 4:23 
GeneralRe: Counter not updating file Pin
xiecsuk10-Mar-17 4:39
xiecsuk10-Mar-17 4:39 
GeneralRe: Counter not updating file Pin
Gerry Schmitz10-Mar-17 5:04
mveGerry Schmitz10-Mar-17 5:04 
QuestionConvert jQUERY code to C# Pin
Member 130142789-Mar-17 3:45
Member 130142789-Mar-17 3:45 
AnswerRe: Convert jQUERY code to C# Pin
OriginalGriff9-Mar-17 4:00
mveOriginalGriff9-Mar-17 4:00 
GeneralRe: Convert jQUERY code to C# Pin
Member 130142789-Mar-17 4:04
Member 130142789-Mar-17 4:04 
GeneralRe: Convert jQUERY code to C# Pin
OriginalGriff9-Mar-17 4:13
mveOriginalGriff9-Mar-17 4:13 
GeneralRe: Convert jQUERY code to C# Pin
Member 130142789-Mar-17 6:10
Member 130142789-Mar-17 6:10 
AnswerRe: Convert jQUERY code to C# Pin
Pete O'Hanlon9-Mar-17 5:18
mvePete O'Hanlon9-Mar-17 5:18 
GeneralRe: Convert jQUERY code to C# Pin
Member 130142789-Mar-17 6:11
Member 130142789-Mar-17 6:11 

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.