Click here to Skip to main content
14,384,475 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
honey the codewitch14-May-19 18:38
memberhoney the codewitch14-May-19 18:38 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 19:16
memberSuper Lloyd14-May-19 19:16 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:30
memberhoney the codewitch14-May-19 19:30 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:32
memberhoney the codewitch14-May-19 19:32 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 19:40
memberSuper Lloyd14-May-19 19:40 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 19:43
memberhoney the codewitch14-May-19 19:43 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 19:55
memberSuper Lloyd14-May-19 19:55 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 20:03
memberhoney the codewitch14-May-19 20:03 
Super Lloyd wrote:
If your code is using other precious system resource, like a Window handle, or a brush handle or a socket... you might be out of luck. You might run out those without the system realizing a system GC is needed.


As it happens, this is just what I meant. If you use things like this, the GC won't necessarily keep up with your creation of objects. You can run out of GDI handles (though maybe not window handles - for other reasons) pretty quickly and Finalize won't help you, or at least that has happened to me.

One of the reasons I won't use GDI handles and such in serving web pages - at least not directly, is the unpredictability of them. What if the connection gets broken and ASP.NET or whatever halts your thread? Sure your finalizers will still run, but when? Will you have enough handles left to serve the next request?

(At least if you call dispose faithfully your odds are better but still)
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 20:11
memberSuper Lloyd14-May-19 20:11 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 20:32
memberhoney the codewitch14-May-19 20:32 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 20:37
memberSuper Lloyd14-May-19 20:37 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 20:56
memberhoney the codewitch14-May-19 20:56 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 21:32
memberSuper Lloyd14-May-19 21:32 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch15-May-19 4:38
memberhoney the codewitch15-May-19 4:38 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 20:12
memberSuper Lloyd14-May-19 20:12 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 20:29
memberhoney the codewitch14-May-19 20:29 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Super Lloyd14-May-19 20:40
memberSuper Lloyd14-May-19 20:40 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
johannesnestler15-May-19 5:09
memberjohannesnestler15-May-19 5:09 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch15-May-19 6:17
memberhoney the codewitch15-May-19 6:17 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 18:44
memberhoney the codewitch14-May-19 18:44 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
Gerardo Orozco15-May-19 9:00
memberGerardo Orozco15-May-19 9:00 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch15-May-19 9:08
memberhoney the codewitch15-May-19 9:08 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
PIEBALDconsult14-May-19 7:21
protectorPIEBALDconsult14-May-19 7:21 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
honey the codewitch14-May-19 7:42
memberhoney the codewitch14-May-19 7:42 
GeneralRe: Some thoughts on the .net CLR/CLI Pin
PIEBALDconsult14-May-19 8:51
protectorPIEBALDconsult14-May-19 8:51 

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.