You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With #50, this became a fatal error as since the previous incarnation had already loaded the auxiliary DLLs, the code is barking on it now.
Instrument KSPe to prevent initialising itself if it detects another instance of it in a way that save our sorry arses in KSP < 1.8.0 but do not screw up KSP >= 1.8.0
The text was updated successfully, but these errors were encountered:
It worths to mention that, besides hot deleting DLLs on a live KSP session is usually a bad idea (since this potentially screws up Reflection), on this case it is… relatively safe as I'm not removing every instance of the DLL, as it's happening with ZeroMiniAVC. See sarbian/ModuleManager#177 for details .
When using Reflection, KSP (or Mono?) always pinpoints to the first loaded Assembly, as it appears, and since KSPe.InstallChecker is preserving the first one to be loaded, no harm is done.
KSPe.InstallChecker
has a borderline use case that is getting screwed by issue #50 : when the user reinstall KSPe from scratch using the same Release.This was not happening until https://github.com/net-lisias-ksp/ModularManagement would to be, as this package can be reinstalled updating something else but keeping KSPe the same.
This is harmless on KSP >= 1.8.0 where multiple Assembly loading was short-circuited, but it was undesired before it as things would be loaded on a different AppDomain, taxing all the calls due internal serialisation. See https://learn.microsoft.com/en-us/dotnet/framework/app-domains/how-to-load-assemblies-into-an-application-domain for more information.
With #50, this became a fatal error as since the previous incarnation had already loaded the auxiliary DLLs, the code is barking on it now.
Instrument KSPe to prevent initialising itself if it detects another instance of it in a way that save our sorry arses in KSP < 1.8.0 but do not screw up KSP >= 1.8.0
The text was updated successfully, but these errors were encountered: