Click here to Skip to main content
14,426,851 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 3:37
professionalRage15-Oct-19 3:37 
GeneralRe: Turkey Day Pin
Nathan Minier15-Oct-19 3:15
professionalNathan Minier15-Oct-19 3:15 
GeneralRe: Turkey Day Pin
bVagadishnu15-Oct-19 3:48
MemberbVagadishnu15-Oct-19 3:48 
GeneralRe: Turkey Day Pin
Mike Hankey15-Oct-19 4:49
professionalMike Hankey15-Oct-19 4:49 
GeneralRe: Turkey Day Pin
Slacker00715-Oct-19 5:05
professionalSlacker00715-Oct-19 5:05 
GeneralRe: Turkey Day Pin
Gary Wheeler15-Oct-19 7:26
MemberGary Wheeler15-Oct-19 7:26 
GeneralRe: Turkey Day Pin
DRHuff15-Oct-19 11:11
MemberDRHuff15-Oct-19 11:11 
RantIP address exception Pin
Marc Clifton14-Oct-19 9:22
communityengineerMarc Clifton14-Oct-19 9: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 9:45
professionalPIEBALDconsult14-Oct-19 9:45 
GeneralRe: IP address exception Pin
raddevus14-Oct-19 9:54
communityengineerraddevus14-Oct-19 9:54 
GeneralRe: IP address exception Pin
David Crow14-Oct-19 10:58
MemberDavid Crow14-Oct-19 10:58 
GeneralRe: IP address exception Pin
raddevus14-Oct-19 11:05
communityengineerraddevus14-Oct-19 11:05 
GeneralRe: IP address exception Pin
Greg Utas14-Oct-19 11:41
professionalGreg Utas14-Oct-19 11:41 
GeneralRe: IP address exception Pin
lopatir14-Oct-19 17:51
Memberlopatir14-Oct-19 17:51 
GeneralRe: IP address exception Pin
dandy7214-Oct-19 11:43
Memberdandy7214-Oct-19 11:43 
GeneralRe: IP address exception Pin
kmoorevs14-Oct-19 13:28
Memberkmoorevs14-Oct-19 13:28 
GeneralRe: IP address exception Pin
CodeWraith14-Oct-19 21:15
MemberCodeWraith14-Oct-19 21:15 
GeneralRe: IP address exception Pin
Sander Rossel15-Oct-19 2:34
professionalSander Rossel15-Oct-19 2:34 
GeneralRe: IP address exception Pin
Gary Wheeler15-Oct-19 7:29
MemberGary Wheeler15-Oct-19 7:29 
GeneralRe: IP address exception Pin
Sander Rossel15-Oct-19 23:55
professionalSander Rossel15-Oct-19 23:55 
GeneralRe: IP address exception Pin
Gary Wheeler16-Oct-19 2:50
MemberGary Wheeler16-Oct-19 2:50 
GeneralRe: IP address exception Pin
Rob Philpott15-Oct-19 6:53
MemberRob Philpott15-Oct-19 6:53 
GeneralRe: IP address exception Pin
PIEBALDconsult15-Oct-19 10:56
professionalPIEBALDconsult15-Oct-19 10:56 
GeneralLooking for a job? Pin
CodeWraith14-Oct-19 6:14
MemberCodeWraith14-Oct-19 6:14 
GeneralRe: Looking for a job? Pin
OriginalGriff14-Oct-19 6:16
communityengineerOriginalGriff14-Oct-19 6: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.