On Apr 11, 2007, at 7:44 AM, Tim Jones wrote:
> On Apr 10, 2007, at 11:11 PM, Patrick Salo wrote:
>
>> I need a quick sanity check before I post this as a bug...
>>
>> Has anyone else run into a problem with an asynchronous shell where
>> the shell appears to get "stuck" unless if you keep emptying the
>> buffer through the DataAvailable event? Maybe this is how it's
>> suppossed to work and I just never caught on to this nuance. Here is
>> some example code in the open event of a window:
>>
>> // Setup Shell
>> Shell1.TimeOut = 14400000
>> Shell1.Mode = 1
>> Shell1.Execute "dir c:\windows\system32\*.* /s"
>>
>> I'm emptying the shell buffer in the DataAvailable event of the shell
>> via:
>>
>> EditField1.Text = EditField1.Text + Shell1.ReadAll
>
> If you "jiggle" the mouse, does the output resume? Also, what
> happens if you change the mode to 2 instead of 1?
>
> Tim
Thanks Tim for your reply. No go on jiggling the mouse or using mode
2. I just tried this on OS X (of course using 'ls -R /System'
instead) and it works perfectly. So I've submitted an error report.
If others are interested in viewing more specifics on this issue
(project attached) or signing up the report URL is:
http://www.realsoftware.com/feedback/viewreport.php?reportid=yrxtouht
I'm somewhat glad it's appears to be bug because it means I'm still
somewhat sane, but it' a bummer because I killed a couple hours
trying to figure this out a few days back. Hopefully this will get
fixed so no one else get stuck along the way.
Patrick
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>