Click here to Skip to main content
15,568,718 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# - Use app between 2 times and get the time from database Pin
Gerry Schmitz9-Nov-20 2:51
mveGerry Schmitz9-Nov-20 2:51 
QuestionWeird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver6-Nov-20 17:24
pr1mem0ver6-Nov-20 17:24 
AnswerRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
Gerry Schmitz6-Nov-20 19:18
mveGerry Schmitz6-Nov-20 19:18 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver7-Nov-20 6:00
pr1mem0ver7-Nov-20 6:00 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
Gerry Schmitz7-Nov-20 6:37
mveGerry Schmitz7-Nov-20 6:37 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver7-Nov-20 14:25
pr1mem0ver7-Nov-20 14:25 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
Gerry Schmitz8-Nov-20 6:53
mveGerry Schmitz8-Nov-20 6:53 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver16-Nov-20 15:58
pr1mem0ver16-Nov-20 15:58 
I don't need to be coddled lol. I just need something beyond vague references as I did not major in CS and there are a few gaps in my learning (mostly self taught). And yes... I DID check "result" which was reported as 4 bytes. So that is not the issue.

The issue is that for some reason it is filling the buffer and counting it as being read when it isn't supposed to. I HAVE checked into that and confirmed it. I reported the issue on MSDN forums as something for them to look into and was told that inheriting/overloading FileStream itself can be unreliable if mixing in other unrelated functionality. I was advised to inherit Stream instead. This is similar to your original suggestion but serves my other needs as well.
AnswerRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
OriginalGriff8-Nov-20 2:35
mvaOriginalGriff8-Nov-20 2:35 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver16-Nov-20 16:10
pr1mem0ver16-Nov-20 16:10 
AnswerRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
Richard Deeming8-Nov-20 22:39
mveRichard Deeming8-Nov-20 22:39 
GeneralRe: Weird problem with Custom StreamReader with Read override not reading correct number of bytes during base method call Pin
pr1mem0ver16-Nov-20 16:06
pr1mem0ver16-Nov-20 16:06 
QuestionSystem.IO.File.WriteAllLines exception Pin
_Flaviu6-Nov-20 0:52
_Flaviu6-Nov-20 0:52 
AnswerRe: System.IO.File.WriteAllLines exception Pin
Richard MacCutchan6-Nov-20 1:01
mveRichard MacCutchan6-Nov-20 1:01 
AnswerRe: System.IO.File.WriteAllLines exception Pin
OriginalGriff6-Nov-20 1:18
mvaOriginalGriff6-Nov-20 1:18 
GeneralRe: System.IO.File.WriteAllLines exception Pin
_Flaviu6-Nov-20 3:33
_Flaviu6-Nov-20 3:33 
AnswerRe: System.IO.File.WriteAllLines exception Pin
Richard MacCutchan6-Nov-20 6:21
mveRichard MacCutchan6-Nov-20 6:21 
GeneralRe: System.IO.File.WriteAllLines exception Pin
_Flaviu7-Nov-20 22:08
_Flaviu7-Nov-20 22:08 
QuestionHow to extract part of HTML source? Pin
Member 5697394-Nov-20 8:53
Member 5697394-Nov-20 8:53 
AnswerRe: How to extract part of HTML source? Pin
OriginalGriff4-Nov-20 9:37
mvaOriginalGriff4-Nov-20 9:37 
GeneralRe: How to extract part of HTML source? Pin
Member 5697394-Nov-20 10:12
Member 5697394-Nov-20 10:12 
AnswerRe: How to extract part of HTML source? Pin
Richard Andrew x644-Nov-20 15:11
professionalRichard Andrew x644-Nov-20 15:11 
AnswerRe: How to extract part of HTML source? Pin
DerekT-P5-Nov-20 0:29
professionalDerekT-P5-Nov-20 0:29 
GeneralRe: How to extract part of HTML source? Pin
Richard Deeming5-Nov-20 0:36
mveRichard Deeming5-Nov-20 0:36 
GeneralRe: How to extract part of HTML source? Pin
DerekT-P5-Nov-20 1:26
professionalDerekT-P5-Nov-20 1:26 

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.