Weirdest problem - catch doesnt work
x is actually my server's info
If my server is running, this works ok. But if I reboot my server, this code throws unhandled exception! Basically catch doesnt work!
```
How is this possible?
10 Replies
might be that exception is being thrown from some different context than you expect, like some other thread, not in the async flow?
I just have this snip runnig on the main thread, right where the form loads. No other code
so doesn't correctly propagate
but OpenAsync calls into a db provider which can do whatever. the responsible code is the provider.
Are you saying there is something wrong with the mysql library? Or that I need to handle it some other way
afaik there are plenty of things wrong with the mysql library, especially the ones not from Pomelo
there might be something wrong with the mysql library. AggregateException is kinda rare especially in async/await, it is usually seen when doing direct Task manipulation and like... not sure
do you have the full exception and stack trace? where does it point to?
i don't really know what can cause that. unhandled exception which is thrown from a cancellation callback?
I have switched to MySqlConnector and now catch actually works... Thanks for the help