Click here to Skip to main content
15,896,541 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 4:57
mvahoney the codewitch18-Aug-19 4:57 
GeneralRe: How bad can you mess up string parsing? Pin
Rick York18-Aug-19 6:58
mveRick York18-Aug-19 6:58 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 7:02
mvahoney the codewitch18-Aug-19 7:02 
GeneralRe: How bad can you mess up string parsing? Pin
Nelek18-Aug-19 8:10
protectorNelek18-Aug-19 8:10 
GeneralRe: How bad can you mess up string parsing? Pin
honey the codewitch18-Aug-19 8:10
mvahoney the codewitch18-Aug-19 8:10 
GeneralRe: How bad can you mess up string parsing? Pin
BillWoodruff18-Aug-19 2:41
professionalBillWoodruff18-Aug-19 2:41 
GeneralRe: How bad can you mess up string parsing? Pin
AnotherKen19-Aug-19 14:55
professionalAnotherKen19-Aug-19 14:55 
GeneralRe: How bad can you mess up string parsing? Pin
Sander Rossel19-Aug-19 19:28
professionalSander Rossel19-Aug-19 19:28 
AnotherKen wrote:
software that we all write where we do not parse inputs
That's the point, this one DOES parse the input, it's the whole point of the software.

I'm assuming this was written in C++.
Getting an AccessViolation in C# like that requires an advanced level of incompetency.
But the parsing would basically just be "Line starts with H? Get first eight characters, then get the next 11, then 11 after that, etc. until you're out of characters."
If the line starts with a V it's a bit trickier since the length of the groups depends upon a value in the nearest H line above it, but still not very difficult.
It should be really easy to check if you've got enough characters for both lines.
You always know how many characters you'd expect and how many you've got left.

This isn't rocket science, especially since it's just a service doing "get input, parse input, do something with input", no system level functionality Unsure | :~

GeneralOk, now I have two dev machines. Pin
OriginalGriff17-Aug-19 23:37
mveOriginalGriff17-Aug-19 23:37 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 0:01
professionalSander Rossel18-Aug-19 0:01 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 0:19
mveOriginalGriff18-Aug-19 0:19 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 0:21
professionalSander Rossel18-Aug-19 0:21 
GeneralRe: Ok, now I have two dev machines. Pin
RickZeeland18-Aug-19 0:31
mveRickZeeland18-Aug-19 0:31 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 1:58
professionalSander Rossel18-Aug-19 1:58 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 0:36
mveOriginalGriff18-Aug-19 0:36 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 1:55
professionalSander Rossel18-Aug-19 1:55 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 2:26
mveOriginalGriff18-Aug-19 2:26 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 2:52
professionalSander Rossel18-Aug-19 2:52 
GeneralRe: Ok, now I have two dev machines. Pin
RickZeeland18-Aug-19 3:43
mveRickZeeland18-Aug-19 3:43 
GeneralRe: Ok, now I have two dev machines. Pin
Sander Rossel18-Aug-19 4:59
professionalSander Rossel18-Aug-19 4:59 
GeneralRe: Ok, now I have two dev machines. Pin
englebart19-Aug-19 2:57
professionalenglebart19-Aug-19 2:57 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff19-Aug-19 3:06
mveOriginalGriff19-Aug-19 3:06 
GeneralRe: Ok, now I have two dev machines. Pin
lopatir18-Aug-19 1:11
lopatir18-Aug-19 1:11 
GeneralRe: Ok, now I have two dev machines. Pin
OriginalGriff18-Aug-19 1:29
mveOriginalGriff18-Aug-19 1:29 
GeneralRe: Ok, now I have two dev machines. Pin
RickZeeland18-Aug-19 3:47
mveRickZeeland18-Aug-19 3:47 

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.