We have an ActiveX control that we added as a reference to a *Console* C#
testbed. The testbed functions, except that:
a. On VS 2003, performance is fine, but on VS 2005, performance is reduced
approximately 50-fold.
b. There is a huge memory leak.
When the "essence" of application is changed from a console application to a
GUI application, both of the above problems disappear. There is no memory
leak, and no performance problem on VS 2005.
The ActiveX control is Apartment threaded I believe. The C# console
application was marked [STAThread] against main.
Does anyone know what might be causing this difference in behaviour?