Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Command Based Program Interuptions (http://www.chiefdelphi.com/forums/showthread.php?t=114887)

inkspell4 11-03-2013 20:21

Command Based Program Interuptions
 
When one of the commands in or program it afterwards returns to the command. How can we force a command to stop after being interrupted?

krieck 11-03-2013 20:58

Re: Command Based Program Interuptions
 
Is the first command a subsystem's "default" command? In that case, another command that requires the subsystem will interrupt the default command, but then the default command will later be rescheduled after the subsystem is no longer required.

If we aren't talking about default commands, then I'm not sure how an interrupted command would spontaneously restart.

inkspell4 11-03-2013 21:09

The first command is not the default and it is also resuming at its previous location

inkspell4 12-03-2013 20:51

If it helps we have used print statements to check and if the code is not interrupted it will finish as expected

F22Rapture 13-03-2013 00:13

Re: Command Based Program Interuptions
 
Put an end(); statement under interrupted();

inkspell4 13-03-2013 16:00

What would this look like?

inkspell4 13-03-2013 20:46

The issue was fixed.

Solution:

Add reqires(____);


All times are GMT -5. The time now is 22:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi