How to detect .NET has started ?

G

Guest

I'm developing apps in WindowsXP which calls IBM's Websphere MQ Client.
This client is a .NET application. My app is using an ActiveX wrapper in
native Windows XP.

When the application calls the .NET application for the first time, the .NET
environment has not started. So to start up .NEt it takes some time before
the actual functionality gets running.

I want to display some user information about the progress of the performed
actions. So i would like to detect in my application if the .NET environment
is up and running. When it is not running i want to display that info to the
user, when it is running, no message is needed.

How do I check if .NET is running ?
 
K

Kevin Spencer

..Net is never "running." It is simply a set of DLLs and registration
entries. The delay occurs because the DLLs are being loaded for the first
time, rather than from cache.

--
HTH,

Kevin Spencer
Microsoft MVP

Printing Components, Email Components,
FTP Client Classes, Enhanced Data Controls, much more.
DSI PrintManager, Miradyne Component Libraries:
http://www.miradyne.net
 
G

Guest

Kevin Spencer said:
..Net is never "running." It is simply a set of DLLs and registration
entries. The delay occurs because the DLLs are being loaded for the first
time, rather than from cache.

Thanks for your response.

So, from the native side (XP), there is no way to determine the .NET
environment is loaded (by checking if dll's, processes are loaded/active) ?

There should be some process running in native XP which represents .NET in
any way. But 'm not familiar with how .NET 'runs' on XP ;)
 
J

Jon Skeet [C# MVP]

There should be some process running in native XP which represents .NET in
any way. But 'm not familiar with how .NET 'runs' on XP ;)

No, there isn't a particular process which represents .NET. When an
application written in .NET is running, the process for that
application contains the CLR, but there's no "extra" process
representing .NET itself.

Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top