Issue with LPRun/#load/NuGet
I came across an interesting issue this week. I can't provide a repro at the moment, because I need to sanitize the code, but here's a description:
- Script A #loads Script B
- Script B defines a class which inherits from a class in Package C
- The class also attaches event handlers defined in Package D
When Script A is run in LinqPad, everything is fine. But when Script A is run via LPRun7, it appears that the event handlers aren't wired up (or at least, they don't fire), even though LPRun doesn't raise any errors.
Is there some known limitation here? I can try to put a repro together.
Comments
I can't think of an explanation. One thing you could look at is whether anything is going on in a finalizer, as the timing of when these are called by the CLR can introduce nondeterministic behavior.