Quantcast
Channel: Windows Forms General forum
Viewing all articles
Browse latest Browse all 12583

Failure of second call to dll by the reflection

$
0
0

I have  a method "Start" in a dll which is invoked via reflection using the following code:

StandAloneInstance.GetMethod("Start", new Type[] { }).Invoke(new object(), null))

here StandAloneInstance is an object of   System.Type 

Whenever I run the code for the first time all runs perfectly and when I invoke the same function without exiting the application it goes in an infinity wait.

However if I stop the application and rerun it all is well again.

While in debugging mode the debugger hangs after the execution of the above line.

Please guide to crack this issue.




Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>