Forum Discussion

fahlen's avatar
fahlen
Occasional Contributor
14 years ago

Non-visual objects in Windows Service

Hi,



I'm usually able to obtain a reference to a non-visual object by using a static field, property or method, which I can access through the AppDomain(…).dotNET statement. This looks like this:



Sys.Process("MyApp").AppDomain("MyApp.exe").dotNET.namespace_name.class_name.property_name



However, when dealing with a windows service (installed by executing "installutil MyApp.exe"), AppDomain("MyApp.exe") doesn't appear to exist, although Sys.Process("MyApp") does. Can TestComplete be used to obtain references to non-visual objects of a windows service?