Unhandled exception at 0x00007FFB9B811F28 in talker.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x000000D8FE3BCEE0.--
You received this message because you are subscribed to the Google Groups "ROS SIG NG ROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-ng-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I use VS2015 mostly when there's a memory problem or race condition specific to Windows and I need to use the Visual Studios debugger.
Personally I'm a bit allergic to GUIs, so I try to avoid Visual Studios when I can--since we do most of our development on Unix first, the Windows dev environment is rough around the edges. But we want the ROS 2 Visual Studios experience to be functional, especially because that would mean bringing in more Windows people to test and develop ROS 2. So we want to hear your feedback about how we can make this better.this is my general workflow:- ament build my workspace in command prompt A- in command prompt B, cd to the top level of your ament workspace and "call install\setup.bat". make sure this command prompt is a "VS2015 x86 Native Tools Command Prompt"! command prompt A probably has to be a Native Tools command prompt, too.
- in command prompt B, use "devenv" to open Visual Studios- In VS, open the .sln file for the package which contains your executable, e.g. ros2_ws\build\rclcpp_examples\rclcpp_examples.sln- sometimes I need a magical unknown step where I have to "Rebuild this project" for things to work. If it asks me about rebuilding out of date projects, I usually ignore it because I've already used ament to build the dependencies...- then, I usually right click on the executable name in "Solution Explorer" (e.g. "talker"), select "Debug" and "Start New Instance" if I want to use the debugger. This seems to work most reliably IF you've built the entire workspace with --cmake-args -DCMAKE_BUILD_TYPE=Debug --.
On Wednesday, April 27, 2016 at 12:22:54 PM UTC-6, Jackie Kay wrote:I use VS2015 mostly when there's a memory problem or race condition specific to Windows and I need to use the Visual Studios debugger.
Personally I'm a bit allergic to GUIs, so I try to avoid Visual Studios when I can--since we do most of our development on Unix first, the Windows dev environment is rough around the edges. But we want the ROS 2 Visual Studios experience to be functional, especially because that would mean bringing in more Windows people to test and develop ROS 2. So we want to hear your feedback about how we can make this better.this is my general workflow:- ament build my workspace in command prompt A- in command prompt B, cd to the top level of your ament workspace and "call install\setup.bat". make sure this command prompt is a "VS2015 x86 Native Tools Command Prompt"! command prompt A probably has to be a Native Tools command prompt, too.So far I've only been using the "VS2015 x64 Native Tools Command Prompt". Are you really using the x86 version for this to work?
- in command prompt B, use "devenv" to open Visual Studios- In VS, open the .sln file for the package which contains your executable, e.g. ros2_ws\build\rclcpp_examples\rclcpp_examples.sln- sometimes I need a magical unknown step where I have to "Rebuild this project" for things to work. If it asks me about rebuilding out of date projects, I usually ignore it because I've already used ament to build the dependencies...- then, I usually right click on the executable name in "Solution Explorer" (e.g. "talker"), select "Debug" and "Start New Instance" if I want to use the debugger. This seems to work most reliably IF you've built the entire workspace with --cmake-args -DCMAKE_BUILD_TYPE=Debug --.When I try to do this, it doesn't compile because it's looking for python debug library. Are you guys compiling this manually on windows for this to work?
- alternatively I choose "Debug" in the top bar and "Start Without Debugging"On Wed, Apr 27, 2016 at 11:04 AM, Brad Baillio <brad.b...@gmail.com> wrote:--Has anyone tried this? Has anyone had success?I've been tinkering with it, and I can get my app to run, but it quickly crashes when creating the node object. It's always crashing on a bad memory allocation.Unhandled exception at 0x00007FFB9B811F28 in talker.exe: Microsoft C++ exception: std::bad_alloc at memory location 0x000000D8FE3BCEE0.This is where it breaks to on the crash:
You received this message because you are subscribed to the Google Groups "ROS SIG NG ROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-ng-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "ROS SIG NG ROS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ros-sig-ng-ro...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.