So it seems google's go is changing the programming landscape, well there probably were other languages out there before but the google-sphere seems to deliver more clout, people take notice. Google Go appears to have done anyway with classical OOP, especially inheritence, although it can be realised via other ways. In my opinion inheritence is a flawed experiment anyway and is often mis-used in real life situations so that the benefits soon become impractical. Additionally, the issues specifically to do with multi-threaded applications,( thread locking etc) seem to have a nice replacement in 'go routines' and channels. I really like …

Member Avatar
Member Avatar
+1 forum 34

I'm simply trying to keep a log list for my application events. I'm trying to send text to the log from a seperate thread with the following code: Imports System.Threading Public Class Main Private worker1 As Thread Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load worker1 = New Thread(AddressOf test) worker1.Start() log(logconsole, "Ready") test() End Sub Private Delegate Sub AppendTextBoxDelegate(ByVal TB As TextBox, ByVal txt As String) Private Sub log(ByVal TB As TextBox, ByVal txt As String) If TB.InvokeRequired Then TB.Invoke(New AppendTextBoxDelegate(AddressOf log), New Object() {TB, txt}) Else TB.AppendText(txt) End If End Sub Sub test() log(logconsole, "text") End …

Member Avatar
Member Avatar
+0 forum 1

The End.