Sunday 2 December 2018

.net - 'Object reference not set to an instance of an object error'

I keep getting an 'Object reference not set to an instance of an object' error when trying to navigate with Gecko. One of the suggestions is to use the New keyword. But where and why?



Dim wbGecko As New GeckoWebBrowser
Dim i As Integer = 0
For i = 0 To lstPosts.Count - 1
wbGecko.Navigate("http://websta.me" & lstPosts.Item(i))
Do
If Not (wbGecko.IsBusy) Then

MessageBox.Show("Hello World!")
End If
Exit Do
Loop
Exit For
Next

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...