In this particular case, the exception was RPC_ E_ WRONGTHREAD. The obvious exception that this code was trying to catch was an exception from GetNameAsync, and it handled it by just reporting the name as “unknown” if the name could not be obtained.īut the problem was that its recovery code threw an exception too! ![]() The code in question looked like this: winrt::fire_and_forget M圜lass::DoSomethingAsync()Īuto name = co_await m_user.GetNameAsync() Last time, we were looking a customer whose code tried to catch all exceptions, but accidentally raised an exception from the code that handled all exceptions.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |