Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Executable Task Block Exec Environment Different Somehow?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
seffyroff  
View profile  
 More options Aug 29 2008, 7:26 am
From: seffyroff <seffyr...@gmail.com>
Date: Fri, 29 Aug 2008 04:26:47 -0700 (PDT)
Local: Fri, Aug 29 2008 7:26 am
Subject: Executable Task Block Exec Environment Different Somehow?
As part of one of my projects build process I need to call a 3D tool
which opens and converts files listed in a script passed to it.  As
part of this process it opens a Direct3D window, which displays the
interface of the tool and some progress bars.

In the days before ccnet I had a batch file that executed the tool
with the commandline parameter, and off it will go.

I've set up an Executable block to do the same thing as the batch
file, and it isn't working.  The tool crashes when it starts.
Attaching to it with a debugger suggests that it is unable to create a
video driver to display the Direct3D window.

Is there something special about the execution environment ccnet's
<exec> task block runs apps in?  Does it somehow not have access to
Windows XP's normal array of standard I/O such as access to DirectX?
I've searched around to see if the particular method ccnet uses has
any peculiarities but my google-fu powers appear to be weak.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ruben Willems  
View profile  
 More options Aug 29 2008, 8:01 am
From: "Ruben Willems" <ruben.will...@gmail.com>
Date: Fri, 29 Aug 2008 14:01:17 +0200
Local: Fri, Aug 29 2008 8:01 am
Subject: Re: [ccnet-user] Executable Task Block Exec Environment Different Somehow?

Hi

are you running CCNet as as service?
if so, try running it as console first and see if this works.

with kind regards
Ruben Willems


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Hommel  
View profile  
 More options Aug 29 2008, 8:01 am
From: Daniel Hommel <daniel.hom...@it-designers.de>
Date: Fri, 29 Aug 2008 14:01:38 +0200
Local: Fri, Aug 29 2008 8:01 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?

seffyroff writes:
> Is there something special about the execution environment ccnet's
> <exec> task block runs apps in?  Does it somehow not have access to
> Windows XP's normal array of standard I/O such as access to DirectX?
> I've searched around to see if the particular method ccnet uses has
> any peculiarities but my google-fu powers appear to be weak.

The problem is that a windows service can't interact with the desktop
(there's a option to allow that but it didn't work for me). If you run
it in the console runner (ccnet.exe) it should work, because then it's
not a service and has access to your desktop. Not a very elegant
solution but i doubt there is an other one.

regards,

Daniel


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seffyroff  
View profile  
 More options Aug 29 2008, 10:51 am
From: seffyroff <seffyr...@gmail.com>
Date: Fri, 29 Aug 2008 07:51:43 -0700 (PDT)
Local: Fri, Aug 29 2008 10:51 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?
Hi Guys,

Thanks for your replies.  As you predicted, the app runs correctly if
called by the console version of ccnet.

What are the downsides to not running as a service?  I don't really
have time to refactor the tool to not open its GUI when running in
batch mode :(

On Aug 29, 1:01 pm, "Ruben Willems" <ruben.will...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Hommel  
View profile  
 More options Aug 29 2008, 10:57 am
From: Daniel Hommel <daniel.hom...@it-designers.de>
Date: Fri, 29 Aug 2008 16:57:28 +0200
Local: Fri, Aug 29 2008 10:57 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?

seffyroff writes:
> What are the downsides to not running as a service?

Your "cruisecontrol user" needs to be logged in and have the console
runner running. That's not very elegant on a server. But as far as i can
tell it works quite well.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seffyroff  
View profile  
 More options Aug 29 2008, 11:27 am
From: seffyroff <seffyr...@gmail.com>
Date: Fri, 29 Aug 2008 08:27:10 -0700 (PDT)
Local: Fri, Aug 29 2008 11:27 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?
That's acceptable to me.

One of these days I'll have the words 'Quick and dirty' mounted on a
plaque above my desk.

Thanks for the help!

On Aug 29, 3:57 pm, Daniel Hommel <daniel.hom...@it-designers.de>
wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Roebuck, Alex  
View profile  
 More options Sep 8 2008, 4:22 am
From: "Roebuck, Alex" <Alex.Roeb...@gs.com>
Date: Mon, 8 Sep 2008 09:22:36 +0100
Local: Mon, Sep 8 2008 4:22 am
Subject: RE: [ccnet-user] Re: Executable Task Block Exec Environment Different Somehow?
An alternative is to run your executable via psexec using the -i switch (interact with the desktop).  For example:

psexec.exe -i 0 your.exe

This should enable your GUI executable to run, even when running CCNet as a service.

http://technet.microsoft.com/en-us/sysinternals/bb897553.aspx

Regards,

Alex Roebuck.


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Daniel Hommel  
View profile  
 More options Sep 8 2008, 4:29 am
From: Daniel Hommel <daniel.hom...@it-designers.de>
Date: Mon, 08 Sep 2008 10:29:16 +0200
Local: Mon, Sep 8 2008 4:29 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?
That sounds interesting! Thanks for the tip. :-)


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
seffyroff  
View profile  
 More options Sep 9 2008, 11:16 am
From: seffyroff <seffyr...@gmail.com>
Date: Tue, 9 Sep 2008 08:16:12 -0700 (PDT)
Local: Tues, Sep 9 2008 11:16 am
Subject: Re: Executable Task Block Exec Environment Different Somehow?
Indeed, that does sound great - i'll try it out.  Thanks very much for
the reply!

On Sep 8, 9:29 am, Daniel Hommel <daniel.hom...@it-designers.de>
wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google