[Gambas-user] Shell command

Shane buster6seven at ...626...
Mon Aug 7 03:30:05 CEST 2017


Same thing here is a file with the output


On 07/08/17 11:10, Tony Morehen wrote:
> what is the output of the shell line?  If you could post the complete 
> output, we could properly test your code.
>
> You could try this line:
>
> devices = Split(sdevices, " ", "", True)
>
>
> On 2017-08-06 08:35 PM, Shane wrote:
>> Hi Jussi
>>
>> I gave that a try by commenting that line out still the same result 
>> so that not the problem
>>
>>
>>
>> On 06/08/17 22:17, Jussi Lahtinen wrote:
>>> I guess settings component can't handle saving of arbitrary object. 
>>> In this
>>> case "Settings["Options/stmDevice"] = ComboBox1.Current". Maybe you 
>>> want to
>>> save ComboBox1.Current.Text?
>>> However there shouldn't be segfault.
>>>
>>>
>>> Jussi
>>>
>>> On Sun, Aug 6, 2017 at 7:18 AM, Shane <buster6seven at ...626...> wrote:
>>>
>>>> I have this in a sub form
>>>>
>>>> Public sdevices As String
>>>>
>>>>
>>>> Public Sub SaveOps_Click()
>>>>
>>>>    Settings["Options/CCompCLine"] = TextBox1.Text
>>>>    Settings["Options/stmDevice"] = ComboBox1.Current
>>>>    'Settings.Save()
>>>>    Me.Close
>>>> End
>>>>
>>>> Public Sub Form_Open()
>>>>   Dim devices As String[]
>>>>   Dim d As String
>>>> '
>>>>     TextBox1.Text = Settings["Options/CCompCLine"]
>>>>     Shell "stm8flash -l" To sdevices
>>>> '  fill combobox with devices
>>>>     devices = Split(sdevices, " ")
>>>>     For Each d In devices
>>>>       ComboBox1.Add(d)
>>>>     Next
>>>> '   ComboBox1.Find(Settings["Options/stmDevice"])
>>>>
>>>> End
>>>>
>>>> but when I exit this form and then the main form i get s Seg fault
>>>>
>>>> but with the shell part commented out it is ok what am i doing wrong ?
>>>>
>>>> any ideas
>>>>
>>>> Thanks Shane
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------
>>>> ------------------
>>>> Check out the vibrant tech community on one of the world's most
>>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>>> _______________________________________________
>>>> Gambas-user mailing list
>>>> Gambas-user at lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>>>
>>> ------------------------------------------------------------------------------ 
>>>
>>> Check out the vibrant tech community on one of the world's most
>>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>>> _______________________________________________
>>> Gambas-user mailing list
>>> Gambas-user at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>>
>> ------------------------------------------------------------------------------ 
>>
>> Check out the vibrant tech community on one of the world's most
>> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
> ------------------------------------------------------------------------------ 
>
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

-------------- next part --------------
stlux???a stm8af526? stm8af528? stm8af52a? stm8af6213 stm8af6223 stm8af6223a stm8af6226 stm8af624? stm8af6266 stm8af6268 stm8af6269 stm8af628? stm8af62a? stm8al313? stm8al314? stm8al316? stm8al3l4? stm8al3l6? stm8l051f3 stm8l052c6 stm8l052r8 stm8l101f1 stm8l101?2 stm8l101?3 stm8l151?2 stm8l151?3 stm8l151?4 stm8l151?6 stm8l151?8 stm8l152?4 stm8l152?6 stm8l152?8 stm8l162?8 stm8s003?3 stm8s005?6 stm8s007c8 stm8s103f2 stm8s103?3 stm8s105?4 stm8s105?6 stm8s207c8 stm8s207cb stm8s207k8 stm8s207m8 stm8s207mb stm8s207r8 stm8s207rb stm8s207s8 stm8s207sb stm8s207?6 stm8s208c6 stm8s208s6 stm8s208?8 stm8s208?b stm8s903?3 stm8splnb1 stm8tl5??4 stnrg???a 


More information about the User mailing list