[Gambas-user] Executing Shell command (also applies to Exec command), FMain form goes blank

John Rose john.aaron.rose at ...626...
Mon Jan 30 15:02:17 CET 2012


On doing a Shell command (also applies to an Exec command), FMain form
goes blank. This can be seen in the attached screenshots. 'Just after
clicking Search button and before clicking Record button.png' shows the
form before executing the Shell command and 'Just after clicking Record
button.png' shows the screen after executing the Shell command.

Code fragment:
Public Sub ButtonRecord_Click()
Dim sInstruction As String
sInstruction = "get_iplayer --force --get Shock --output " & sDirectory
& " --raw >" & sLogFilename & " 2>&1"
Print "sInstruction=", sInstruction
Shell sInstruction To sOutput

Small project also attached.





-------------- next part --------------
A non-text attachment was scrubbed...
Name: Just after clicking Search button and before	clicking Record button.png
Type: image/png
Size: 21590 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120130/decebd7c/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Just after clicking Record button.png
Type: image/png
Size: 3961 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120130/decebd7c/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Test.tar.gz
Type: application/x-compressed-tar
Size: 12323 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120130/decebd7c/attachment.bin>


More information about the User mailing list