No problem. When I get some more time I will dig into the source in more detail… Have a few ideas for how to make the executor more “friendly” … e.g. configuring it to only do work when there is no user logged into windows or between particular times ( e.g. from 2000 until 0700).

 

Brian

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tibor Biro
Sent: 20 January 2006 15:39
To: [email protected]
Subject: RE: [Alchemi-users] Applications not stopping

 

Hi Brian,

 

Thanks for digging deeper into this. I added your comments to the bug.

 

I think that it will be fixed pretty soon in CVS as well considering how detailed your instructions are.

 

Regards,

Tibor

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Delahunty
Sent: Friday, January 20, 2006 10:10 AM
To: 'Tibor Biro'; [email protected]
Subject: RE: [Alchemi-users] Applications not stopping

 

I’ve only spent the last few minutes looking at the code but it seems that the code in GApplication that fires the ApplicationFinished event doesn’t make any attempt to see the application state to ApplicationState.Stopped … this means that the UpdateApplication method is never actually called so the status is not set in the database to indicate that the application has actually stopped.

 

Even when you call Stop on your GApplication instance it doesn’t work because the stop method checks to see if the application is still running, which it isn’t (it’s finished) and hence doesn’t call the “Owner_StopApplication” method in GManager (which in turn calls “Stop” on MApplication – which sets the state and causes the db to be updated).

 

To get around the issues for my particular instance I simply remove the check on _Running in the Stop method of GApplication… works fine for what I need.

 

Brian

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tibor Biro
Sent: 20 January 2006 13:44
To: [email protected]
Subject: RE: [Alchemi-users] Applications not stopping

 

Hi Brian,

 

I was able to confirm this problem so I filed a bug with it.

 

Thanks for bringing this to our attention.

 

Regards,

Tibor

 

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Brian Delahunty
Sent: Friday, January 20, 2006 8:38 AM
To: [email protected]
Subject: [Alchemi-users] Applications not stopping

 

Hi All,

 

Just started using Alchemi and I already love it. I’ve come across one small issue though… After I have run the PiCalculator example and all the threads finish and the application itself closes, it is still visible in the “Console” and when I try to delete it from the Application section in the Console it says that the application is still running. Any ideas?

 

Brian

 

Reply via email to