Jump to content

  • Log In with Google      Sign In   
  • Create Account


Moving from Java to c++


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
21 replies to this topic

#21 lride   Members   -  Reputation: 633

Like
0Likes
Like

Posted 02 November 2012 - 02:52 PM

Brace yourself for the horrors of memory management


Nowdays, we got good memory leak detectors that point out the actual location in your source code where the memory leak occured.
My favorite is Visual Leak Detector(compatible with VS 08, 10 and 12)
I do not think the manual memory management is going to be a "horror".
An invisible text.

Sponsor:

#22 joew   Crossbones+   -  Reputation: 3162

Like
1Likes
Like

Posted 02 November 2012 - 07:14 PM

I do not think the manual memory management is going to be a "horror".

I agree as realistically if using C++11 and RAII properly there shouldn't be much worry about memory management/leaks at all. As mentioned above there are also good tools for tracking things down if needed.. although using std::unique_ptr, std::shared_ptr, and std::weak_ptr effectively really makes things quite simple. I actually find memory management easier in C++11 than using garbage collected languages as the pointer classes are safe and I still control their actual point of destruction... imo it's a win-win.

Edited by joew, 02 November 2012 - 07:15 PM.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS