[code] [textadept] proc:kill()

From: Richard Philips <richard.philips.att.gmail.com>
Date: Wed, 14 May 2014 09:50:28 +0200

I can confirm on Windows7, spawn is stable now.

Thanks,

Richard

On Wednesday, May 14, 2014, Richard Philips <richard.philips.att.gmail.com>
wrote:

> Hi Mitchell,
>
>
> The error occurred with other GUI programs as well.
>
>
> I just took charmap.exe as an example (I knew it is avalaible on all
> Windows versions)
>
> At this time I do not have a Windows available: I test it tomorrow at work.
>
>
> Richard
>
>
>
>
> On Tuesday, May 13, 2014, Mitchell <m.att.foicica.com> wrote:
>
>> Richard,
>>
>> On Mon, 12 May 2014, Richard Philips wrote:
>>
>> Hi Mitchell,
>>>
>>> (sorry if did already sent this message - I found it back in my drafts
>>> folder and I'm not sure I sent it out ;-)
>>>
>>> Again about spawn and proc :-)
>>>
>>>
>>> I'm using proc:kill().
>>>
>>> It works perfectly with Unix (Ubuntu) but in Windows it causes problems.
>>>
>>> The kill is executed, there is no error but the process remains alive.
>>> If, after the kill, I issue a proc:status(), textadept freezes and I have
>>> to force quit it.
>>>
>>> The following example ON WINDOWS illustrates the problem:
>>>
>>>
>>> function test()
>>> local process = spawn("charmap.exe") -- launches Windows character map
>>> ui.dialogs.msgbox{ -- shows the status of the process
>>> title = 'Alert!',
>>> width = 900,
>>> float = true,
>>> icon = 'gtk-dialog-info',
>>> text = process:status()
>>> }
>>>
>>> process:kill() -- kills the process but does not succeed
>>>
>>> ui.dialogs.msgbox{ -- shows the status of the process
>>> title = 'Alert!',
>>> width = 900,
>>> float = true,
>>> icon = 'gtk-dialog-info',
>>> text = process:status()
>>> }
>>>
>>>
>>> -- textadept is not stable anymore
>>>
>>> end
>>>
>>
>> The instability should be fixed in tonight's nightly. However, 'charmap'
>> is an odd program. After spawning it, I am able to kill it (as far as
>> Textadept reports), but the window does not close...
>>
>> Cheers,
>> Mitchell
>> --
>> You are subscribed to code.att.foicica.com.
>> To change subscription settings, send an e-mail to code+help.att.foicica.com.
>> To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
>>
>>

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Wed 14 May 2014 - 03:50:28 EDT

This archive was generated by hypermail 2.2.0 : Wed 14 May 2014 - 06:51:52 EDT