Welcome
Welcome to MicroAPL's Support Forum for APLX.


You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), upload content, and access many other special features. Registration is fast, simple, and absolutely free, so please, join our community today!

Terminating a Process in Windows Task Manager

Topics specific to APLX running under Windows

Terminating a Process in Windows Task Manager

Postby tagid » Sat May 21, 2011 12:30 am

After a standalone executable file I've created completes its execution and closes, the process is still listed as active in Window's Task Manager under the Processes tab. Is there a way to signal to Window that the process should be terminated after the program has finished running?

Thanks for any suggestions.
tagid
 
Posts: 36
Joined: Mon May 18, 2009 2:00 am
Location: Washington, DC

Re: Terminating a Process in Windows Task Manager

Postby MicroAPL » Mon May 23, 2011 3:31 pm

The process should terminate automatically if either of the following occur:

1) APL returns to Desk Calculator mode (i.e. your ⎕LX function ends)

2) Your code explicity executes an )OFF

Is it possible that your application has closed all windows but is still waiting for events inside ⎕WE ?
MicroAPL
Site Admin
 
Posts: 335
Joined: Tue Jul 08, 2008 5:25 pm

Re: Terminating a Process in Windows Task Manager

Postby tagid » Mon May 23, 2011 4:14 pm

The following is the contents of an .exe file that exhibits the problem -the quad symbols before ')off' is the execute symbol.

I've assigned function 'foo' to ⎕LX.

foo;j
j←5 ⎕conf 0
'Hi there from compiled ws...'
'Now, 10 second delay before "⍎)off"...'
j←⎕dl 10
⍎')off'
tagid
 
Posts: 36
Joined: Mon May 18, 2009 2:00 am
Location: Washington, DC

Re: Terminating a Process in Windows Task Manager

Postby MicroAPL » Thu May 26, 2011 11:09 am

Seems to work OK, with no process left running (tested under Vista) - what OS version are you running?
MicroAPL
Site Admin
 
Posts: 335
Joined: Tue Jul 08, 2008 5:25 pm

Re: Terminating a Process in Windows Task Manager

Postby tagid » Thu May 26, 2011 3:27 pm

I'm running Windows 7.

I did try it on a PC running Vista and the process terminated correctly.
tagid
 
Posts: 36
Joined: Mon May 18, 2009 2:00 am
Location: Washington, DC

Re: Terminating a Process in Windows Task Manager

Postby MicroAPL » Thu May 26, 2011 6:31 pm

OK, we'll test that out. It seems odd that Windows 7 would be any different in this respect.
MicroAPL
Site Admin
 
Posts: 335
Joined: Tue Jul 08, 2008 5:25 pm

Re: Terminating a Process in Windows Task Manager

Postby rpowell » Sat Oct 26, 2013 4:55 pm

I have the same problem.
Windows 7.
rpowell
 
Posts: 19
Joined: Fri Sep 26, 2008 4:53 pm

Re: Terminating a Process in Windows Task Manager

Postby MicroAPL » Tue Nov 05, 2013 3:33 pm

We have a fix for this which will be uploaded to our website in the next couple of weeks.
MicroAPL
Site Admin
 
Posts: 335
Joined: Tue Jul 08, 2008 5:25 pm

Re: Terminating a Process in Windows Task Manager

Postby rpowell » Tue Feb 04, 2014 7:49 pm

Any update when this fix is going to be released?

Thank you.
rpowell
 
Posts: 19
Joined: Fri Sep 26, 2008 4:53 pm

Re: Terminating a Process in Windows Task Manager

Postby kakaronaldo » Sun Dec 11, 2016 9:05 am

I have the same thing to say as the third comment about that.....
Graduated from Soran University with First Class Degree with Honours in Computer Science.
kakaronaldo
 
Posts: 1
Joined: Sun Dec 11, 2016 9:03 am


Return to APLX for Windows

cron
suspicion-preferred