<div dir="ltr">I don't think you can attach files using the forum interface. You can either post them in the forum interface using <pre> tags to keep the code formatting intact, or you can use the mailing list interface and attach the files to your email.<div>
<br></div><div>If you can post not just your source but all the other files you used to compile it (i.e. any make files), it will be easier for us to test your code to see if we have the same problem.</div><div><br></div>
<div>Geoff</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 17 July 2014 05:17,  <span dir="ltr"><<a href="mailto:attila.bernath@sztaki.hu" target="_blank">attila.bernath@sztaki.hu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Some more details: - I have ubuntu linux 12.04 and g++ version 4.6.3 - I<br>
managed to recompile omniorb 4.1.5 with -g -O0 option, and it turned out that<br>
the line pd_ncs_c and pd_tcs_c both are null pointers when the segfault<br>
happens. - Adding a strange line (a constructor of an InPort) somehow solves<br>
this issue (there is no segfault any more at least). I include the modified<br>
code (that does not give a segfault). (Can someone tell me how to attach a<br>
file, please?) #include #include #include #include #include using std::cout;<br>
using std::cerr; using std::endl; using std::stringstream; using std::string;<br>
int main(int argc, char **argv) { RTC::TimedString data; // const char* c =<br>
"hu"; // std::string s; // std::cout << "Please input string: "; //<br>
std::getline(std::cin, s); // data.data = CORBA::string_dup(s.c_str());<br>
RTC::TimedString data2; // commenting out the next line results in a segfault<br>
RTC::InPort("hi", data2); std::cout << data.data << std::endl;<br>
cdrMemoryStream os; std::cerr << "Hi" << std::endl; data >>= os; std::cerr <<<br>
"Hi2" << std::endl; } Attila<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
openrtm-users mailing list<br>
<a href="mailto:openrtm-users@openrtm.org" target="_blank">openrtm-users@openrtm.org</a><br>
<a href="http://www.openrtm.org/mailman/listinfo/openrtm-users" target="_blank">http://www.openrtm.org/<u></u>mailman/listinfo/openrtm-users</a><br>
</div></div></blockquote></div><br></div>