vb.net - String variable shows as empty but length shows it to not be -


i'm using vb.net visual studio 2008 test fixture, writing , reading 4 usb virtual serial ports using serialport class.

the odd thing that's happening that, looking @ code below, receivedstring shows, on mouseover, "" or empty yet receivedstringlength says 37. how possible? both variables declared locally in private sub. has encountered situation , bug in visual studio 2008?

    receivedstring = serialportmaestro.readexisting     receivedstringlength = len(receivedstring) 

.net uses bstrings, length-prefixed , null-terminated. if first character in recievedstring null character ('\0'), not printed, since strings end @ first null character.


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -