Ok so here's the story.
I have an array of Assemblies which are initiated by [Assembly].LoadFrom()
that load a number of DLL's. Upon initialising, a method called InitMain
(from the DLL!) is called, which sets a number of variables outside of this method, like here:
Public Class Example
Dim C As Integer = 0
Public Sub InitMain()
C = 50
End Sub
Public Sub Test()
MsgBox("C = " & C)
End Sub
End Class
If I call the method Test using that same array of Assemblies somewhere later in the main application (like pressing a button or something to trigger it), it will pop up a messagebox with that says: "C = 0"
Why is this? Is it fixable without any odd workarounds?
Thanks in advance!