[Gambas-user] capture gambas debug console events?
T Lee Davidson
t.lee.davidson at gmail.com
Tue Nov 14 13:28:39 CET 2017
You might also try simply redirecting stderr to stdout and capturing both to a string:
Shell "steghideCommand 2>&1" to myString
--
Lee
On 11/14/2017 05:39 AM, Fabien Bodard wrote:
> in desing module between line 988 - 995
>
>
>
> If sProg Then
> $hProcess = Exec aExec With aEnv As "Process"
> Else
> '$hProcess = Exec aExec With aEnv For Input Output As "Process"
> $hProcess = FOutput.GetTerminal().Exec(aExec, aEnv)
> $hProcess.Term.Echo = True
> $hObserver = New Observer($hProcess, True) As "Process"
> Endif
>
>
>
> here you can add an observer again and scan the returned values.
>
>
>
>
> 2017-11-13 18:24 GMT+01:00 mikeB <mb at code-it.com>:
>> eGreetings to the world of Gambas,
>> I have a app, that I'm trying to develop, that shells out to "Steghide"
>> among other things. The problem I need to resolve (if possible) is
>> to capture any errors messages that occur during the "Strghide" process.
>>
>> I'm probably just dreaming that this may be done but...
>> The Gambas debug console captures the errors - is there any way to code it
>> so that the debug messages can be transferred/ captured then displayed in a
>> label (or somewhere) on the main form of the project?
>> As far as getting the error message from the terminal (shell to steghide")
>> then showing on the main form - I find no way ;-(
>
> There is many ways in fact. You need just to capture the
>
>>
>> Thanks for any/ all help to resolve (or not) this matter,
>> mikeB
>>
>> --------------------------------------------------
>>
>> This is the Gambas Mailing List
>> https://lists.gambas-basic.org/listinfo/user
>>
>> Hosted by https://www.hostsharing.net
>
>
>
More information about the User
mailing list