B
Brian Stoop
Hi,
I have a console app that loads a DLL using Assembly.LoadFile.. Then it
calls a method in the DLL repeatedly in a loop like this:
while (true)
{
Thread.Sleep(10);
object [] par = new object[] {"xxx", "yyy"};
string val = (String)MyServer.MyDLLType.InvokeMember("GetMyValue",
BindingFlags.Default | BindingFlags.InvokeMethod, null, oMyInstance,
par);
}
But I can see the memory climbing ?
Does InvokeMember hold onto any memory, and if so is it possible to release
it ?
Thanks, Brian
I have a console app that loads a DLL using Assembly.LoadFile.. Then it
calls a method in the DLL repeatedly in a loop like this:
while (true)
{
Thread.Sleep(10);
object [] par = new object[] {"xxx", "yyy"};
string val = (String)MyServer.MyDLLType.InvokeMember("GetMyValue",
BindingFlags.Default | BindingFlags.InvokeMethod, null, oMyInstance,
par);
}
But I can see the memory climbing ?
Does InvokeMember hold onto any memory, and if so is it possible to release
it ?
Thanks, Brian