T
TkPins
I am loading an assembly using the following code:
ObjectHandle oh = Activator.CreateInstanceFrom(assemblyName, className);
object obj = oh.Unwrap();
MyInterface interface = obj as MyInterface;
interface.MyFunction(); // Call a function in the
loaded assembly
I then call functions using my interface - which works fine.
But if I try to use the debugger, as soon as it steps into the assembly, the
debugger displays the incorrect line.
Although it does open the correct source code file. It just seems to have
the wrong line offset.
I have made sure that the source code and the DLL are the same (not
different versions).
What could be the problem? This isn't normal is it?
Thanks in advance.
Tom
ObjectHandle oh = Activator.CreateInstanceFrom(assemblyName, className);
object obj = oh.Unwrap();
MyInterface interface = obj as MyInterface;
interface.MyFunction(); // Call a function in the
loaded assembly
I then call functions using my interface - which works fine.
But if I try to use the debugger, as soon as it steps into the assembly, the
debugger displays the incorrect line.
Although it does open the correct source code file. It just seems to have
the wrong line offset.
I have made sure that the source code and the DLL are the same (not
different versions).
What could be the problem? This isn't normal is it?
Thanks in advance.
Tom