Hi
I have this piece of code:
records >> sPacket.size_app_payload; // == 15
sPacket.app_payload.resize( sPacket.size_app_payload );
printf("Application Payload array size: %d\r\n", sPacket.app_payload.size() );
records >> sPacket.size_app_payload; // == 15
sPacket.app_payload.resize( sPacket.size_app_payload );
printf("Application Payload array size: %d\r\n", sPacket.app_payload.size() );
To copy to clipboard, switch view to plain text mode
the
sPacket.size_app_payload
sPacket.size_app_payload
To copy to clipboard, switch view to plain text mode
returns 15
the
sPacket.app_payload.size()
sPacket.app_payload.size()
To copy to clipboard, switch view to plain text mode
returns 0 !!!
Unless I'm finally going mad or short of spotting something very obvious this is weird!
TIA,
Pedro.
Bookmarks