Jump to content
OpenSplice DDS Forum

Search the Community

Showing results for tags 'isocpp'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • About OpenSplice DDS
    • News and Events
    • Site Feedback
  • Using OpenSplice DDS
    • General
    • Troubleshooting
  • Understanding OpenSplice DDS
    • OpenSplice DDS Slideshows
    • OpenSplice DDS Movies
  • Community
    • Project: SIMD
    • Project: CamelOS
    • Project: DDS Touchstone
    • Project: RESTful DDS
    • Mac OS X

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Company

Found 6 results

  1. bonjefir

    Double free error

    Hi I'm using DDS opensplice community edition in my programs. Everything looks fine except when I want to close the program. I receive this error "double free or corruption (!prev)" everytime I click on quit button. I'm sure that this error is related to the DDS program but I don't know what to do. Should I do some configuration before starting or stopping dds opensplice? Thanks in advance for your help.
  2. Hi, following the examples of the Tutorial fo isocpp I create a publisher and a writer in this way: dds::pub::qos::PublisherQos pubQos = dp.default_publisher_qos() << dds::core::policy::Partition(partition_name); dds::pub::Publisher pub(dp, pubQos); dds::pub::qos::DataWriterQos dwqos = topicQos; dwqos << dds::core::policy::WriterDataLifecycle::ManuallyDisposeUnregisteredInstances(); dds::topic::Topic<DATA::MY_DATA> my_topic(dp, "DATA_MY_DATA", topicQos); my_dw = dds::pub::DataWriter<DATA::MY_DATA>(pub, my_topic, dwqos); As soon as I create the DataWriter my_dw, the liveliness on the subscriber changes reflecting the presence of a new publisher. How can my publisher leave and re-join a topic without destroy the c++ object? Massimo.
  3. bonjefir

    implementation of DDS in a class

    Hi It would be very appreciated if someone could give me a very simple example with a main function and a class which declaration and implementation of the class are separated (in ISO CPP). Thanks in advance for your helps.
  4. bonjefir

    Return codes in isocpp API

    Hi I want to get the returncode of different functions (e.g. DR.take() or DR.read()) with isocpp API. I have tried some codes to no avail. Also I have tried CheckStatus class but cannot use it in my codes. The main problem is that nearly all of functions that I'm using return void not ReturnCode_t. Thanks in advance for your helps. bonjefir
  5. bonjefir

    entity_factory QoS

    Hi I want to set the entity factory QoS of my default domain to false. So I wrote the code below (isocpp); dds::domain::qos::DomainParticipantQos dpqos; dpqos << dds::core::policy::EntityFactory::ManuallyEnable(); dds::domain::DomainParticipant dp(org::opensplice::domain::default_id(),dpqos); dds::topic::qos::TopicQos topicQos = dp.default_topic_qos() << dds::core::policy::Durability::Transient() << dds::core::policy::Reliability::Reliable() << dds::core::policy::History::KeepAll(); dds::topic::Topic<myIDL::payload> topic(dp, "HelloWorldData_Msg", topicQos); std::string name = "HelloWorld example"; dds::sub::qos::SubscriberQos subQos = dp.default_subscriber_qos() << dds::core::policy::Partition(name) << dds::core::policy::EntityFactory(FALSE); dds::sub::Subscriber sub(dp, subQos); dds::sub::qos::DataReaderQos drqos = topic.qos(); dds::sub::DataReader<myIDL::payload> dr(sub, topic, drqos); //dp.enable(); //sub.enable(); dr.enable(); Surprisingly my code works without enabling subscriber! Can anyone say what's the correct way of setting entity factory QoS to false?
  6. Hi, I'm having trouble building the isocpp api for the community edition version 6.3.130716. I'm trying to rebuild the api using vs2008pro with the solution provided in custom_lib. I get many errors starting with: dds_builtinTopics.h(51) : error C2146: syntax error : missing ';' before identifier 'BuiltinTopicKey_t_slice' dds_builtinTopics.h(51) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int dds_builtinTopics.h(52) : error C2144: syntax error : 'void' should be preceded by ';' dds_builtinTopics.h(52) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int dds_builtinTopics.h(53) : error C2144: syntax error : 'void' should be preceded by ';' dds_builtinTopics.h(53) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int dds_builtinTopics.h(53) : error C2086: 'int DDS::SACPP_API' : redefinition This is an IDL generated file and that section looks like the following with the erros on the line in bold: typedef DDS::Long BuiltinTopicKey_t_slice; typedef DDS::Long BuiltinTopicKey_t[3]; typedef BuiltinTopicKey_t BuiltinTopicKey_t_out; SACPP_API extern BuiltinTopicKey_t_slice * BuiltinTopicKey_t_alloc (); SACPP_API extern void BuiltinTopicKey_t_free (BuiltinTopicKey_t_slice *); SACPP_API void BuiltinTopicKey_t_copy (BuiltinTopicKey_t_slice* to, const BuiltinTopicKey_t_slice* from); SACPP_API extern BuiltinTopicKey_t_slice *BuiltinTopicKey_t_dup (const BuiltinTopicKey_t_slice* from); Most of the errors seem to be associated with the DLL import/export declaration. I've tried declaring OSPL_BUILD_DCPSCCPP locally with no effect. I've also tried reinstalling and rebuilding the DDS source using cygwin in both release and dev mode. I finially tried defining SACPP_API empty with no effect. It is late and I'm most likely missing something. Any pointers in what I'm doing wrong? Thanks, Scott
×