Click here to Skip to main content
15,898,035 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 19:31
CodeWraith24-Aug-18 19:31 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 19:46
Munchies_Matt24-Aug-18 19:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:30
CodeWraith24-Aug-18 20:30 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 20:51
Munchies_Matt24-Aug-18 20:51 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Eric Lynch25-Aug-18 2:16
Eric Lynch25-Aug-18 2:16 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Super Lloyd24-Aug-18 19:56
Super Lloyd24-Aug-18 19:56 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:47
CodeWraith24-Aug-18 20:47 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:46
jschell25-Aug-18 3:46 
Super Lloyd wrote:
For one thing it has little to do with "object lifecyle"


Perhaps we have a different definition of that term. I have seen problems in both Java and C# where the developers failed to properly account for how an object 'ended'. They had no problem with when the object 'started' but they never considered how to specifically control how it 'ended'.

Matter of fact I suspect that I have seen code that might have that sort of problem just in the past week.

Super Lloyd wrote:
FYI, unless you do interop, which is less and less common those days, the only reason for leak in C# is if your referenced by static variable or (though is the same thing in disguise) static event. Or maybe too many live threads which don't die (and all the memory they collect), could typically come from wait handle hanging forever...


Probably been at least 15 years since I worked in a system where at least some threads did not die. Often quite a few of them. At least in Java the server frameworks build that in extensively. Most problems I have seen have been because the developers did not even seem to be aware that they were working in a threaded environment.

Java and C# both have complex thread pool support and the concept has existed since before C# existed. Might have existed before Java but I wasn't introduced to it until after I first used Java. For context I started with Java 1.1.4 (well before 1.4.)
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:57
TheGreatAndPowerfulOz25-Aug-18 7:57 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:33
jschell25-Aug-18 3:33 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 1106097925-Aug-18 4:12
User 1106097925-Aug-18 4:12 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:58
TheGreatAndPowerfulOz25-Aug-18 7:58 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
lopatir24-Aug-18 22:43
lopatir24-Aug-18 22:43 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 1106097925-Aug-18 6:07
User 1106097925-Aug-18 6:07 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
User 58385227-Aug-18 2:07
User 58385227-Aug-18 2:07 
GeneralIs JavaScript the best example of "technical debt"? Pin
swampwiz24-Aug-18 15:45
swampwiz24-Aug-18 15:45 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Super Lloyd24-Aug-18 20:02
Super Lloyd24-Aug-18 20:02 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Eric Lynch25-Aug-18 2:41
Eric Lynch25-Aug-18 2:41 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
jschell25-Aug-18 3:50
jschell25-Aug-18 3:50 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
PIEBALDconsult25-Aug-18 7:41
mvePIEBALDconsult25-Aug-18 7:41 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
abmv25-Aug-18 7:59
professionalabmv25-Aug-18 7:59 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Jon McKee25-Aug-18 8:22
professionalJon McKee25-Aug-18 8:22 
GeneralMessage Removed Pin
24-Aug-18 9:59
Dinesh Gupti24-Aug-18 9:59 
GeneralMessage Removed Pin
24-Aug-18 11:01
mveDave Kreskowiak24-Aug-18 11:01 
GeneralMessage Removed Pin
24-Aug-18 11:03
protectorNelek24-Aug-18 11:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Straw Poll

Were you affected by the geomagnetic storms this past weekend?
Communication disruptions, electrified pipes, random unexplained blue-screens in Windows - the list of effects is terrifying.
  Results   368 votes