Click here to Skip to main content
15,897,371 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: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 13:37
Super Lloyd14-May-19 13:37 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 13:52
mvahoney the codewitch14-May-19 13:52 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 14:04
Super Lloyd14-May-19 14:04 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 14:28
mvahoney the codewitch14-May-19 14:28 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 15:31
Super Lloyd14-May-19 15:31 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 16:16
mvahoney the codewitch14-May-19 16:16 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 16:44
Super Lloyd14-May-19 16:44 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 16:48
mvahoney the codewitch14-May-19 16:48 
I just don't have a good enough justification to use because it doesn't prevent resource leaks - win32 does that, as I said.

I've never seen .NET even call finalizers 99% of the time until just before process exit.

Which means your VB developer who is not using anything like using(var brush = ) is still creating a ton of handles that will remain uncollected for the lifetime of the app. And GC has no way of knowing when GDI is out of handles. So it just lets them get eaten, even with your finalizers.

Until your proc exits. At which point win32 cleans up anyway. Now tell me I'm wrong about any of this?
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 17:13
Super Lloyd14-May-19 17:13 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 17:17
mvahoney the codewitch14-May-19 17:17 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 17:24
mvahoney the codewitch14-May-19 17:24 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 17:30
Super Lloyd14-May-19 17:30 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 17:38
mvahoney the codewitch14-May-19 17:38 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 18:16
Super Lloyd14-May-19 18:16 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 18:30
mvahoney the codewitch14-May-19 18:30 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 18:32
mvahoney the codewitch14-May-19 18:32 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 18:40
Super Lloyd14-May-19 18:40 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 18:43
mvahoney the codewitch14-May-19 18:43 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 18:55
Super Lloyd14-May-19 18:55 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:03
mvahoney the codewitch14-May-19 19:03 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 19:11
Super Lloyd14-May-19 19:11 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:32
mvahoney the codewitch14-May-19 19:32 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 19:37
Super Lloyd14-May-19 19:37 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:56
mvahoney the codewitch14-May-19 19:56 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 20:32
Super Lloyd14-May-19 20:32 

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   62 votes