My guess is that services on NT are not allowed to 'interact with the
desktop'. So that might be applicable to even other processes spawned by
services. In the startup properties for a service there is an option
called 'allow service to interact with desktop'. It *might* do the
trick.

HTH,
Shalabh

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Kevin
Murphy
Sent: Saturday, March 03, 2001 11:33 AM
To: [EMAIL PROTECTED]
Subject: Python COM When Spawned By An NT Service???


Hello all,

I've been working with Python for a good deal of time now, and within
the last 2 months, got into the COM end of it's seemingly endless
capabilities using the PythonWin extensions, specifically the
ActivePython package version 202.  I have written a utility to interact
with Excel for various different purposes, and this utility needs to be
automated, run on a regular basis.  We use the Seagate Info
scheduler for this purpose, and it runs as a service.

Now, the problem:

When Seagate Info spawns the utility, it tries to dispatch the COM
client, as it would normally, however it ends up with an error to the
effect of "Access Is Denied" immediately after the dispatch
command.  This only happens on NT4, and I am using Seagate Info v7.
There are two ways I can solve this as a temporary fix, but neither is
acceptible for the long run.

Configuring Info to run as an application, as opposed to a service,
provides a successful response, the utility runs without fail.  Also,
setting up Info as a service, and the utilty on Windows 2000 Server,
there is no problem...  So the problem lies somewhere in the combination
of spawning the Python utility from a service, and Windows NT 4.

Any assistance that you can provide would be GREATLY appreciated.

Thank You!

-Kevin Murphy
Sargon Consulting





_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to