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

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -