Closed SchwarzChristian closed 6 years ago
Google is your friend on this one... "handling System.AccessViolationException" should give you some options.
I did, but none of them are working in this case, because the exception is thrown in a thread started by Abot/AbotX. I dont want to catch corrupted state exceptions globally. To catch them locally, i need to annotate the catching method. Since none of my methods is in the stack trace i see no way to do so.
You can take a look at Abot.Util.TaskThreadManager.cs implementation. There is some basic exception handling happening there that you might be able to alter to do what you are trying to do. If you extend/override and plug in your imple IThreadManager you can hook into it.
I'll take a look at this next week. Thank you for your help.
Hi,
while crawling https://www.ikk-classic.de/ the following exception is thrown and the process crashes immediately:
The problem occurs after some time, depending on the politeness settings. After some investigation using Wireshark and according to the stack trace, it seems like the exception is triggered by some invalid packets sent by the crawled webserver. May it be possible to handle this kind of exceptions?