Click here to Skip to main content
15,891,136 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.

 
PraiseNice Error Message WinUI3! :) Pin
Super Lloyd23-Nov-21 15:45
Super Lloyd23-Nov-21 15:45 
GeneralRe: Nice Error Message WinUI3! :) Pin
honey the codewitch24-Nov-21 1:21
mvahoney the codewitch24-Nov-21 1:21 
GeneralRe: Nice Error Message WinUI3! :) Pin
Super Lloyd24-Nov-21 12:57
Super Lloyd24-Nov-21 12:57 
GeneralRe: Nice Error Message WinUI3! :) Pin
honey the codewitch24-Nov-21 13:00
mvahoney the codewitch24-Nov-21 13:00 
GeneralRe: Nice Error Message WinUI3! :) Pin
Super Lloyd24-Nov-21 13:17
Super Lloyd24-Nov-21 13:17 
GeneralRe: Nice Error Message WinUI3! :) Pin
honey the codewitch24-Nov-21 13:25
mvahoney the codewitch24-Nov-21 13:25 
GeneralRe: Nice Error Message WinUI3! :) Pin
Super Lloyd24-Nov-21 13:34
Super Lloyd24-Nov-21 13:34 
GeneralRe: Nice Error Message WinUI3! :) Pin
honey the codewitch24-Nov-21 13:51
mvahoney the codewitch24-Nov-21 13:51 
ShowDialog spins the message loop while it's displayed. I suppose in microsoft's defense they may be trying to move away from that.

Yeah C++ has async, and there it's even more important not to use it just because you can. (I'm not saying you don't have a good reason in this case - you do - but generally speaking)

The problem with async methods and that code transformation comes when someone throws an exception that isn't handled properly inside an async method implementation. Basically if you don't call SetResult or SetException (I think it's called?) on the taskresult object and instead you throw an exception the debugger won't be able to reconstruct your call stack in a way that will be helpful. Admittedly, this is most often a problem when writing your own async methods rather than consuming them, but it is easy to get wrong, especially when something you didn't expect to throw throws.
Real programmers use butterflies


modified 24-Nov-21 19:59pm.

GeneralMen or Supermen? Pin
Gerry Schmitz23-Nov-21 11:05
mveGerry Schmitz23-Nov-21 11:05 
GeneralRe: Men or Supermen? Pin
PIEBALDconsult23-Nov-21 11:09
mvePIEBALDconsult23-Nov-21 11:09 
GeneralPredictions for future programming languages PinPopular
harold aptroot23-Nov-21 10:10
harold aptroot23-Nov-21 10:10 
GeneralRe: Predictions for future programming languages Pin
PIEBALDconsult23-Nov-21 11:01
mvePIEBALDconsult23-Nov-21 11:01 
GeneralRe: Predictions for future programming languages Pin
BillWoodruff24-Nov-21 1:23
professionalBillWoodruff24-Nov-21 1:23 
Generaldrilling holes in my new roof Pin
stoneyowl223-Nov-21 4:38
stoneyowl223-Nov-21 4:38 
GeneralRe: drilling holes in my new roof Pin
PIEBALDconsult23-Nov-21 4:42
mvePIEBALDconsult23-Nov-21 4:42 
GeneralRe: drilling holes in my new roof Pin
OriginalGriff23-Nov-21 5:10
mveOriginalGriff23-Nov-21 5:10 
GeneralRe: drilling holes in my new roof Pin
Mike Hankey23-Nov-21 9:44
mveMike Hankey23-Nov-21 9:44 
GeneralRe: drilling holes in my new roof Pin
PIEBALDconsult23-Nov-21 9:48
mvePIEBALDconsult23-Nov-21 9:48 
GeneralRe: drilling holes in my new roof Pin
Mike Hankey23-Nov-21 10:07
mveMike Hankey23-Nov-21 10:07 
GeneralRe: drilling holes in my new roof Pin
Rage24-Nov-21 1:17
professionalRage24-Nov-21 1:17 
GeneralRe: drilling holes in my new roof Pin
stoneyowl224-Nov-21 3:27
stoneyowl224-Nov-21 3:27 
GeneralRe: drilling holes in my new roof Pin
Rage24-Nov-21 4:13
professionalRage24-Nov-21 4:13 
GeneralRe: drilling holes in my new roof Pin
snorkie24-Nov-21 2:46
professionalsnorkie24-Nov-21 2:46 
GeneralRe: drilling holes in my new roof Pin
stoneyowl224-Nov-21 3:30
stoneyowl224-Nov-21 3:30 
GeneralRe: drilling holes in my new roof Pin
snorkie24-Nov-21 7:15
professionalsnorkie24-Nov-21 7:15 

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.