ros::init crash

211 views
Skip to first unread message

Ан Жо

unread,
Feb 10, 2014, 7:37:41 AM2/10/14
to win...@googlegroups.com
i do tutorial from http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28c%2B%2B%29#roscpp_tutorials.2BAC8-Tutorials.2BAC8-WritingPublisherSubscriber.The_Code

but program crashes at ros::init with Unhandled exception "0x77ba9328 (roscpp.dll)" in "ROS_test.exe": 0xC0000005: Access violation reading "0x00000000".

Thanks for some help!

Daniel Stonier

unread,
Feb 10, 2014, 8:18:05 AM2/10/14
to win...@googlegroups.com
Are you compiling in release or debug mode? If doing debug, try release. The win-ros libraries are currently compiled in release mode with debug symbols.

In win-ros' case, debug and release doesn't mix (search through some older threads here).

Daniel.


--
You received this message because you are subscribed to the Google Groups "Ros on Windows" group.
To unsubscribe from this group and stop receiving emails from it, send an email to win-ros+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/

Ан Жо

unread,
Feb 10, 2014, 8:48:58 AM2/10/14
to win...@googlegroups.com


Are you compiling in release or debug mode? If doing debug, try release. The win-ros libraries are currently compiled in release mode with debug symbols.

In win-ros' case, debug and release doesn't mix (search through some older threads here).

Daniel.

Thanks, I solve that. 
I tried release also and got the same. It was another fault: environment variable ROS_MASTER_URI in release version of VS2010 was not set in Debugging->Environment in Project properties. I think, tutorial have a mistake in this: VS2010 doesn't set paths in Environment field, that field for debug mode.
Thank you, Daniel, because of your words i pay attention to console window with error log.
Reply all
Reply to author
Forward
0 new messages