Click here to Skip to main content
15,914,419 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: Turkey Day Pin
Rage15-Oct-19 2:37
professionalRage15-Oct-19 2:37 
GeneralRe: Turkey Day Pin
Nathan Minier15-Oct-19 2:15
professionalNathan Minier15-Oct-19 2:15 
GeneralRe: Turkey Day Pin
bVagadishnu15-Oct-19 2:48
bVagadishnu15-Oct-19 2:48 
GeneralRe: Turkey Day Pin
Mike Hankey15-Oct-19 3:49
mveMike Hankey15-Oct-19 3:49 
GeneralRe: Turkey Day Pin
Slacker00715-Oct-19 4:05
professionalSlacker00715-Oct-19 4:05 
GeneralRe: Turkey Day Pin
Gary Wheeler15-Oct-19 6:26
Gary Wheeler15-Oct-19 6:26 
GeneralRe: Turkey Day Pin
DRHuff15-Oct-19 10:11
DRHuff15-Oct-19 10:11 
RantIP address exception Pin
Marc Clifton14-Oct-19 8:22
mvaMarc Clifton14-Oct-19 8:22 
So I just spent an hour figuring out why I was getting an exception in my application when using a third party library to communicate to a credit card processing machine. I was getting a general exception back from the third party library, but the test software that comes with the library was working just fine.

Short answer, when I C&P'd my router's public IP address into the dialog box, there was a space at the end of the IP address. Took a while to spot:

"192.168.14.134 "
vs.
"192.168.14.134"

Sigh. OK, so now I make sure to trim the IP address string (the third party library expects a string) and I suppose I should do some regex validation.

Still, why couldn't I get back an exception like "malformed IP address"? Why is the library so sensitive to an space at the end of string? Yes, I take some responsibility, but not all the responsibility!!!

GeneralRe: IP address exception Pin
PIEBALDconsult14-Oct-19 8:45
mvePIEBALDconsult14-Oct-19 8:45 
GeneralRe: IP address exception Pin
raddevus14-Oct-19 8:54
mvaraddevus14-Oct-19 8:54 
GeneralRe: IP address exception Pin
David Crow14-Oct-19 9:58
David Crow14-Oct-19 9:58 
GeneralRe: IP address exception Pin
raddevus14-Oct-19 10:05
mvaraddevus14-Oct-19 10:05 
GeneralRe: IP address exception Pin
Greg Utas14-Oct-19 10:41
professionalGreg Utas14-Oct-19 10:41 
GeneralRe: IP address exception Pin
lopatir14-Oct-19 16:51
lopatir14-Oct-19 16:51 
GeneralRe: IP address exception Pin
dandy7214-Oct-19 10:43
dandy7214-Oct-19 10:43 
GeneralRe: IP address exception Pin
kmoorevs14-Oct-19 12:28
kmoorevs14-Oct-19 12:28 
GeneralRe: IP address exception Pin
CodeWraith14-Oct-19 20:15
CodeWraith14-Oct-19 20:15 
GeneralRe: IP address exception Pin
Sander Rossel15-Oct-19 1:34
professionalSander Rossel15-Oct-19 1:34 
GeneralRe: IP address exception Pin
Gary Wheeler15-Oct-19 6:29
Gary Wheeler15-Oct-19 6:29 
GeneralRe: IP address exception Pin
Sander Rossel15-Oct-19 22:55
professionalSander Rossel15-Oct-19 22:55 
GeneralRe: IP address exception Pin
Gary Wheeler16-Oct-19 1:50
Gary Wheeler16-Oct-19 1:50 
GeneralRe: IP address exception Pin
Rob Philpott15-Oct-19 5:53
Rob Philpott15-Oct-19 5:53 
GeneralRe: IP address exception Pin
PIEBALDconsult15-Oct-19 9:56
mvePIEBALDconsult15-Oct-19 9:56 
GeneralLooking for a job? Pin
CodeWraith14-Oct-19 5:14
CodeWraith14-Oct-19 5:14 
GeneralRe: Looking for a job? Pin
OriginalGriff14-Oct-19 5:16
mveOriginalGriff14-Oct-19 5:16 

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.