Comments (2)
The exception occurs because the sample is not being written.
The sample passed to write is something completely under the control of the writing side, and it was decided that it was more desirable to not publish data which does not follow the requirements of the data type, than it was to publish it.
There are two ways to solve the write issue:
- validate the data before writing, skipping samples which do not follow the requirements of the data type
- put the write inside a try/catch block and do something with the exception
About the null character being included in the bounds check: I am currently working on a unittest and solution for this issue.
from cyclonedds-cxx.
Looking at the code we account for the null terminating zero here, but the bound exceeded check doesnt account this here, this might be the problem. Similar checks exist for write_string
/read_string
also.
from cyclonedds-cxx.
Related Issues (20)
- CycloneDDS-CXX is SHM build error!!! HOT 1
- Handling exception when creating a participant HOT 3
- Fix for issue #293 not in latest release HOT 2
- Make `DataReader::read()` const HOT 1
- Reader listener hangs in GUI application when samples are present HOT 8
- Equality operator returns false for an equal empty union HOT 3
- OMG_DDS_X_TYPES_DYNANIC_TYPE_SUPPORT vs OMG_DDS_X_TYPE_DYNAMIC_TYPES_SUPPORT
- DataWriter fails to write message HOT 1
- Add cyclonedds-cxx to conan HOT 2
- Subscribe for inherited topic with @key attribute HOT 2
- Is there a function to apply QoS parameters as a file?
- Network usage is strange when a topic is listen by multi DataReader
- Question - Need a way to get the GUID for any entity in C++ HOT 2
- Generate streaming operators for std::ostream HOT 3
- Compile Error Visual Studio 2017: already been declared as a non-class template
- Compile Error: InstanceHandle has ambiguous operator
- datatopic.hpp: populate_hash() does not populate the hash HOT 1
- Unknown CMake command "idlc_generate_generic" while using idlcxx_generate() HOT 1
- why Publisher events Listener annotation? HOT 3
- Compilation Error in linux HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedds-cxx.