Hello community,
my registerType(address, bfbsPath);
returns DL_INVALID_VALUE.
its similar done like in:
/sdk-el5su9ce/post/register-multiple-flatbuffer-types-in-data-layer-LBH7UIciMXNtkqU
the main difference is that i compile the bfbs via a shellscript and not over cmakelist.
My call looks like:
auto bfbsXXX = "/snap/XXX/current/flatbuffers/XXX.bfbs";
auto result = Provider_->registerType(address, bfbsXXX);
also,
also,
flatbuffers::Offset<comm::datalayer::Reference> vecReferences[] = {comm::datalayer::CreateReferenceDirect(builder, "createType", address)};
is done and OnMetadata is done exactly like in the upper link too.
The path to the bfbs and the type get correct printed into console,
auto result = Provider_->registerType(address, bfbsXXX);
if (comm::datalayer::STATUS_FAILED(result))
{
TRACE_MSG("registerType of '%s' failed: %s", address, result.toString());
TRACE_MSG("path-address: '%s'", address);
TRACE_MSG("path-bfbs: '%s'", bfbsXXX);
return false;
}
My compiling of flatbuffers is:
flatc -o ../YYY/Flatbuffers --cpp YYY.fbs
flatc -o ./bfbs --gen-object-api --binary --schema YYY.fbs
Any suggestions/ideas?
Sincerely Elleshar