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 <buster6se...@gmail.com> 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@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@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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to