I have a native Win32 application that hosts the CLR to use C# as a sophisticated 'scripting' language.
I've got a memory leak and I decided to try Microsoft's CLR Profiler to investigate. (I'm not sure if the leak is managed or not and was hoping this tool might help reveal that, for one thing.)
However, when I tell CLRProfiler to start my (native) application, although my application always within the first second or so of running starts up the CLR, CLRProfiler continues to display the prompt Waiting for application to start common language runtime
even though my application is obviously running its managed code.
Is CLRProfiler only able to connect to the CLR if it was started by the stub that managed-only programs use to start the CLR, and not if the application explicitly loaded and started up MSCOREE.DLL
? Or am I simply doing something wrong?
Or is there something (hopefully simple) my native application needs to do while starting the CLR to have CLRProfiler get along with it?