TaskWindow "some command" -quit fails to quit if command crashes
André Timmermans (100) 655 posts |
I have written a BASIC program that that launches with the help Wimp_StartTask a conversion tool in a task window when you drop a file onto its main window. The command passed to Wimp_StartTask is in the form: When multiple files are dropped on the application I just wait till for the subtask (identified by the task id returned by Wimp_StartTask) to cease to exists before starting the next conversion. During a conversion batch, I noticed at one time that conversions stopped occurring because of a taskwindow that remained in the background. When I performed the conversion by hand, the conversion crashed with an “Abort of data transfer”. I killed the pending taskwindow and conversions resumed till another similar case occurred, hence my conclusion that the “-quit” option doesn’t work if the command executed by the taskwindow crashes. On that note I have been thinking instead chaining the conversions in a permanent, visible taskwindow so that I can see the conversion problems, kind like !Make (chaining compilation of each files in the project) but I don’t see how it works. Does anyone have some kind of example at hand? |
André Timmermans (100) 655 posts |
Some additional issues:
|
nemo (145) 2563 posts |
Can you get your converter to output a character regularly (like the typical \|/- “spinner”) to show it’s still running – you’ll get regular TW_Output messages. If some time goes past with no output (whilst you’ve still had nulls yourself), you can assume it has died. Command line limitations are one of the things the DDEUtils module addresses, IIRC. There’s no excuse beyond “won’t someone think of the poor Basic programs” I suspect. Yeah, -task and -txt are not mentioned by |