Click here to Skip to main content
15,894,177 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: Thought of the Day Pin
Ron Anders30-Sep-21 15:34
Ron Anders30-Sep-21 15:34 
GeneralRe: Thought of the Day Pin
den2k8830-Sep-21 21:34
professionalden2k8830-Sep-21 21:34 
GeneralRe: Thought of the Day Pin
CPallini30-Sep-21 20:36
mveCPallini30-Sep-21 20:36 
GeneralRe: Thought of the Day Pin
den2k8830-Sep-21 21:36
professionalden2k8830-Sep-21 21:36 
GeneralRe: Thought of the Day Pin
BillWoodruff30-Sep-21 22:26
professionalBillWoodruff30-Sep-21 22:26 
GeneralRe: Thought of the Day Pin
Slow Eddie1-Oct-21 2:13
professionalSlow Eddie1-Oct-21 2:13 
GeneralRe: Thought of the Day Pin
peterkmx1-Oct-21 9:37
professionalpeterkmx1-Oct-21 9:37 
RantWeakReference broken in .NET5 Pin
Super Lloyd30-Sep-21 2:18
Super Lloyd30-Sep-21 2:18 
Back to home project after.. a long break!
(hence my recent numerous programming posts) OMG | :OMG: Big Grin | :-D

Upgrading my utilities to .NET5, running the tests and then this test broke....
var wo = new WeakReference(new object());
GC.Collect(GC.MaxGeneration, GCCollectionMode.Forced);
Assert.False(wo.IsAlive);

Wow really? Floored Unsure | :~ Confused | :confused: OMG | :OMG:
Work with .NET4.7.2, fails with .NET5
Out of curiosity tried .NET6 (preview). Work again in .NET6, phew.. Rose | [Rose] D'Oh! | :doh:

EDIT
After some reflection, it's most likely GC.Collect() that is broken in .NET5.... little harm done...
A new .NET Serializer
All in one Menu-Ribbon Bar
Taking over the world since 1371!


modified 30-Sep-21 8:37am.

GeneralRe: WeakReference broken in .NET5 PinPopular
RickZeeland30-Sep-21 2:50
mveRickZeeland30-Sep-21 2:50 
GeneralRe: WeakReference broken in .NET5 Pin
Super Lloyd30-Sep-21 2:56
Super Lloyd30-Sep-21 2:56 
GeneralRe: WeakReference broken in .NET5 Pin
Richard Deeming30-Sep-21 4:17
mveRichard Deeming30-Sep-21 4:17 
GeneralRe: WeakReference broken in .NET5 Pin
honey the codewitch30-Sep-21 10:46
mvahoney the codewitch30-Sep-21 10:46 
GeneralRe: WeakReference broken in .NET5 Pin
Super Lloyd30-Sep-21 13:21
Super Lloyd30-Sep-21 13:21 
GeneralRe: WeakReference broken in .NET5 Pin
lmoelleb30-Sep-21 23:53
lmoelleb30-Sep-21 23:53 
GeneralRe: WeakReference broken in .NET5 Pin
BillWoodruff30-Sep-21 22:22
professionalBillWoodruff30-Sep-21 22:22 
GeneralRe: WeakReference broken in .NET5 Pin
Super Lloyd30-Sep-21 23:29
Super Lloyd30-Sep-21 23:29 
GeneralRe: WeakReference broken in .NET5 Pin
Luca Leonardo Scorcia1-Oct-21 12:09
professionalLuca Leonardo Scorcia1-Oct-21 12:09 
GeneralRe: WeakReference broken in .NET5 Pin
Super Lloyd1-Oct-21 17:11
Super Lloyd1-Oct-21 17:11 
GeneralCCC 2021-09-30 Pin
jsc4229-Sep-21 22:04
professionaljsc4229-Sep-21 22:04 
GeneralRe: CCC 2021-09-30 Pin
OriginalGriff29-Sep-21 22:08
mveOriginalGriff29-Sep-21 22:08 
GeneralRe: CCC 2021-09-30 - Solved Pin
jsc4229-Sep-21 22:20
professionaljsc4229-Sep-21 22:20 
GeneralRe: CCC 2021-09-30 Pin
pkfox29-Sep-21 22:18
professionalpkfox29-Sep-21 22:18 
GeneralF-35 Pilot Helmet Pin
BernardIE531729-Sep-21 20:19
BernardIE531729-Sep-21 20:19 
GeneralRe: F-35 Pilot Helmet Pin
Kornfeld Eliyahu Peter29-Sep-21 20:35
professionalKornfeld Eliyahu Peter29-Sep-21 20:35 
GeneralRe: F-35 Pilot Helmet Pin
den2k8829-Sep-21 21:17
professionalden2k8829-Sep-21 21:17 

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.