Click here to Skip to main content
14,491,656 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
MemberCodeWraith24-Aug-18 19:31 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 19:46
MemberMunchies_Matt24-Aug-18 19:46 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:30
MemberCodeWraith24-Aug-18 20:30 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
Munchies_Matt24-Aug-18 20:51
MemberMunchies_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
mvaEric 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
MemberSuper Lloyd24-Aug-18 19:56 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
CodeWraith24-Aug-18 20:47
MemberCodeWraith24-Aug-18 20:47 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:46
Memberjschell25-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
MemberTheGreatAndPowerfulOz25-Aug-18 7:57 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
jschell25-Aug-18 3:33
Memberjschell25-Aug-18 3:33 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
0x01AA25-Aug-18 4:12
professional0x01AA25-Aug-18 4:12 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
TheGreatAndPowerfulOz25-Aug-18 7:58
MemberTheGreatAndPowerfulOz25-Aug-18 7:58 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
lopatir24-Aug-18 22:43
Memberlopatir24-Aug-18 22:43 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
0x01AA25-Aug-18 6:07
professional0x01AA25-Aug-18 6:07 
GeneralRe: Does C++ finally have enough features to make memory leaks a ... memory? Pin
NotJosh27-Aug-18 2:07
MemberNotJosh27-Aug-18 2:07 
GeneralIs JavaScript the best example of "technical debt"? Pin
swampwiz24-Aug-18 15:45
Memberswampwiz24-Aug-18 15:45 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Super Lloyd24-Aug-18 20:02
MemberSuper Lloyd24-Aug-18 20:02 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
Eric Lynch25-Aug-18 2:41
mvaEric Lynch25-Aug-18 2:41 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
jschell25-Aug-18 3:50
Memberjschell25-Aug-18 3:50 
GeneralRe: Is JavaScript the best example of "technical debt"? Pin
PIEBALDconsult25-Aug-18 7:41
professionalPIEBALDconsult25-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 
GeneralAPOD Pin
R. Giskard Reventlov24-Aug-18 5:42
MemberR. Giskard Reventlov24-Aug-18 5:42 
GeneralRe: APOD Pin
RickZeeland24-Aug-18 6:34
mveRickZeeland24-Aug-18 6:34 
GeneralThought of the Day Pin
OriginalGriff24-Aug-18 5:02
mveOriginalGriff24-Aug-18 5:02 

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.