Open arknu opened 6 years ago
If registering a dynamic assembly is needed, then there needs to be at least a try/catch to ensure that the method continues running as it should.
I'm working on a PR to implement this suggested change.
PR #17
Have released version 1.0.18 to fix this issue
Thanks @Joniff. But looking at https://github.com/Joniff/Terratype/blob/master/src/Terratype/Frisk/Frisk.cs I see no changes to suggest that this issues has been fixed.
I fixed the issue back in March, I've only now got around to release it. It still might change again, as I'm currently in the process of writing a new ListView functionality that requires this new Frisk functionailty.
I was having an issue, where sometimes the maps would fail loading with the exception indicating that the provider couldn't be found.
After a lot of digging, I found the root cause. Trying to register dynamic assemblies throws an exception like this:
I had to add a try-catch in the foreach loop i Frisk.cs to even catch this exception. It was failing silently, with the Lazy swallowing the exception (not at all what I expected - a yellow screen of death would have been easier).
My fix is to just not even attempt registering dynamic assemblies: