[openrtm-users 03065] Re: (無題)

Geoffrey Biggs geoffrey.biggs @ aist.go.jp
2014年 7月 17日 (木) 18:18:18 JST


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.

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.

Geoff


On 17 July 2014 05:17, <attila.bernath @ sztaki.hu> wrote:

> Some more details: - I have ubuntu linux 12.04 and g++ version 4.6.3 - I
> managed to recompile omniorb 4.1.5 with -g -O0 option, and it turned out
> that
> the line pd_ncs_c and pd_tcs_c both are null pointers when the segfault
> happens. - Adding a strange line (a constructor of an InPort) somehow
> solves
> this issue (there is no segfault any more at least). I include the modified
> code (that does not give a segfault). (Can someone tell me how to attach a
> file, please?) #include #include #include #include #include using
> std::cout;
> using std::cerr; using std::endl; using std::stringstream; using
> std::string;
> int main(int argc, char **argv) { RTC::TimedString data; // const char* c =
> "hu"; // std::string s; // std::cout << "Please input string: "; //
> std::getline(std::cin, s); // data.data = CORBA::string_dup(s.c_str());
> RTC::TimedString data2; // commenting out the next line results in a
> segfault
> RTC::InPort("hi", data2); std::cout << data.data << std::endl;
> cdrMemoryStream os; std::cerr << "Hi" << std::endl; data >>= os; std::cerr
> <<
> "Hi2" << std::endl; } Attila
>
>
> _______________________________________________
> openrtm-users mailing list
> openrtm-users @ openrtm.org
> http://www.openrtm.org/mailman/listinfo/openrtm-users
>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://www.openrtm.org/pipermail/openrtm-users/attachments/20140717/03fcb5c4/attachment.html>


More information about the openrtm-users mailing list