Jump to content
OpenSplice DDS Forum

Search the Community

Showing results for tags 'sequence'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


  • Community Calendar

Found 5 results

  1. Using: VortexOpenSplice-6.7.170912OSS-HDE-x86_64.win-vs2015 I've received some IDL that utilizes sequence<char> for passing strings (rather than char[] or string); it appears that in C# this doesn't actually pass the value through. (Note that this works fine in C++) This can be easily reproduced in the HelloWorld sample as follows: Change the HelloWorldData.idl: Replace: string message; With: sequence<char,16> message; Change the HellowWorldDataPublisher.cs: Replace: msgInstance.message = "Hello World"; With: string str = "Hello World"; char[] array = new char[16]; Array.Copy(str.ToCharArray(), array, str.Length); msgInstance.message = array; Run the HelloWorld sample app and you'll see that the received message in the HelloWorldDataSubscriber has no content (is of length 0) Note that in the IDL if you use a char<16> rather than a sequence<char,16> it works as expected and you get the "Hello World" in the subscriber. Can you please advise on whether this is a usage problem, code generation problem or something else? (and if there's a workaround short of changing the IDL) Thank you very much.
  2. JVM Access Violation

    Hi, I have got the next jvm crash when running a java proccess which writes 2 topics (Topic1,Topic2) with sequences and another process which read this 2 topics. The crash happens in the writting process. I attach the two idl files. the crash is: # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000007feda2128e3, pid=10572, tid=11044idls.zip # # JRE version: Java SE Runtime Environment (8.0_60-b27) (build 1.8.0_60-b27) # Java VM: Java HotSpot 64-Bit Server VM (25.60-b23 mixed mode windows-amd64 compressed oops) # Problematic frame: # C [ddskernel.dll+0x28e3] Topic1.idl module com { module ik { module dds { module topics { module topic1 { struct BasicStruct { String UT; }; typedef sequence<BasicStruct> ListaTipos; struct Topic1 { String id; ListaTipos IdVI; }; #pragma keylist Topic1 id };};};};}; Topic2.idl module com { module ik { module dds { module topics { module topic2 { struct BasicStruct { String UT; long indice; }; typedef sequence<BasicStruct> ListaTipos; struct Topic2 { String id; ListaTipos IdVI; }; #pragma keylist Topic2 id };};};};}; The problem is solved not using the same name for the structures. Is it a bug ???
  3. Hi all, I am trying to develope a proof of concept with OpenSplice and I think is quite similar as the Throughput example that is provided with OpenSplice community edition. I'm trying to create a stream of IDL type sequences with considerable amount of data and frequency per sample with reliable delivery. Should I use OpenSplice DDS V6 Sreams for these requirements? First I am thinking to use the OpenSplice Community Edition Version 6.x for Linux kernel for the Reader and the Writer and then changing the writer to OpenSplice Community Edition Version 6.x for Raspberry Pi (probably the effort spent with is compatible in both). I noticed that the provided example the samples could arrive out of order and the ariginal sample could be splited and delivered separately. I usually use the example driven approach to get things done, therefore if someone can provide me some tips and examples to finish the concept would be awesome. Thanks in advance, JoãoMSM.
  4. Hi all, I am building an OpenSplice application, and I created the IDL topic I need. Into that, I have to use some sequence, that the pre-processor convert as array. Bi the way, at the moment, I cant figure out which the best solution for adding/removing elements from this sequence is. Is there an already implemented solutions in IDL ? Shall I create separately in my codes these ? Thank you all in advance. Best regards.
  5. Hi, What is the way to instantiate sequences in C++? I have found it in Java (pretty simple with arrays) but I did not find any documentation or example for my problem. Let's say I have this IDL module HelloWorldData { struct Msg { /** User ID */ long userID; /** message */ string message; }; #pragma keylist Msg userID typedef sequence<Msg> seq_msg; struct OtherMsg { long userID; string message; seq_msg mySeq; }; #pragma keylist OtherMsg userID }; And this code Msg msg1; msg1.userID = 10; msg1.message = "aaa"; Msg msg2; msg2.userID = 20; msg2.message = "bbb"; OherrMsg msgInstance; msgInstance.userID = 1; msgInstance.message = DDS::string_dup("Hello World"); How do I instantiate my sequence in C++ since mySeq is not generated as array like in java? msgInstance.mySeq = ? Thank you